Search in sources :

Example 1 with ITestEntitiesBuilder

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);
        }
    });
}
Also used : IBuilder(org.whole.lang.builders.IBuilder) IEntityContext(org.whole.lang.contexts.IEntityContext) TestEntitiesSpecificBuilderAdapter(org.whole.lang.testentities.builders.TestEntitiesSpecificBuilderAdapter) IBuilderFactory(org.whole.lang.builders.IBuilderFactory) ITestEntitiesBuilder(org.whole.lang.testentities.builders.ITestEntitiesBuilder) TestEntitiesGenericBuilderAdapter(org.whole.lang.testentities.builders.TestEntitiesGenericBuilderAdapter)

Aggregations

IBuilder (org.whole.lang.builders.IBuilder)1 IBuilderFactory (org.whole.lang.builders.IBuilderFactory)1 IEntityContext (org.whole.lang.contexts.IEntityContext)1 ITestEntitiesBuilder (org.whole.lang.testentities.builders.ITestEntitiesBuilder)1 TestEntitiesGenericBuilderAdapter (org.whole.lang.testentities.builders.TestEntitiesGenericBuilderAdapter)1 TestEntitiesSpecificBuilderAdapter (org.whole.lang.testentities.builders.TestEntitiesSpecificBuilderAdapter)1