Search in sources :

Example 1 with TestEventsGenericBuilderAdapter

use of org.whole.lang.testevents.builders.TestEventsGenericBuilderAdapter in project whole by wholeplatform.

the class TestEventsLanguageDeployer method deploy.

public void deploy(ReflectionFactory platform) {
    if (ReflectionFactory.getLanguageKitRegistry().containsResource(TestEventsLanguageKit.URI, false, null))
        return;
    platform.addLanguageKit(new TestEventsLanguageKit());
    platform.addOperationFactory(TestEventsLanguageKit.URI, GenericBuilderAdapterOperation.ID, new IBuilderFactory() {

        public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
            return new TestEventsGenericBuilderAdapter((ITestEventsBuilder) strategy, entityContext);
        }
    });
    platform.addOperationFactory(TestEventsLanguageKit.URI, SpecificBuilderAdapterOperation.ID, new IBuilderFactory() {

        public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
            return new TestEventsSpecificBuilderAdapter(strategy, entityContext);
        }
    });
}
Also used : IBuilder(org.whole.lang.builders.IBuilder) ITestEventsBuilder(org.whole.lang.testevents.builders.ITestEventsBuilder) IEntityContext(org.whole.lang.contexts.IEntityContext) TestEventsGenericBuilderAdapter(org.whole.lang.testevents.builders.TestEventsGenericBuilderAdapter) IBuilderFactory(org.whole.lang.builders.IBuilderFactory) TestEventsSpecificBuilderAdapter(org.whole.lang.testevents.builders.TestEventsSpecificBuilderAdapter)

Aggregations

IBuilder (org.whole.lang.builders.IBuilder)1 IBuilderFactory (org.whole.lang.builders.IBuilderFactory)1 IEntityContext (org.whole.lang.contexts.IEntityContext)1 ITestEventsBuilder (org.whole.lang.testevents.builders.ITestEventsBuilder)1 TestEventsGenericBuilderAdapter (org.whole.lang.testevents.builders.TestEventsGenericBuilderAdapter)1 TestEventsSpecificBuilderAdapter (org.whole.lang.testevents.builders.TestEventsSpecificBuilderAdapter)1