use of org.whole.lang.testentities.builders.ITestEntitiesBuilder in project whole by wholeplatform.
the class TestEntitiesLanguageDeployer method deploy.
public void deploy(ReflectionFactory platform) {
if (ReflectionFactory.getLanguageKitRegistry().containsResource(TestEntitiesLanguageKit.URI, false, null))
return;
platform.addLanguageKit(new TestEntitiesLanguageKit());
platform.addOperationFactory(TestEntitiesLanguageKit.URI, GenericBuilderAdapterOperation.ID, new IBuilderFactory() {
public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
return new TestEntitiesGenericBuilderAdapter((ITestEntitiesBuilder) strategy, entityContext);
}
});
platform.addOperationFactory(TestEntitiesLanguageKit.URI, SpecificBuilderAdapterOperation.ID, new IBuilderFactory() {
public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
return new TestEntitiesSpecificBuilderAdapter(strategy, entityContext);
}
});
}
Aggregations