Search in sources :

Example 1 with IPatternsBuilder

use of org.whole.lang.patterns.builders.IPatternsBuilder in project whole by wholeplatform.

the class PatternsLanguageDeployer method deploy.

public void deploy(ReflectionFactory platform) {
    platform.addLanguageKit(new PatternsLanguageKit());
    platform.addOperationFactory(PatternsLanguageKit.URI, GenericBuilderAdapterOperation.ID, new IBuilderFactory() {

        public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
            return new PatternsGenericBuilderAdapter((IPatternsBuilder) strategy, entityContext);
        }
    });
    platform.addOperationFactory(PatternsLanguageKit.URI, SpecificBuilderAdapterOperation.ID, new IBuilderFactory() {

        public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
            return new PatternsSpecificBuilderAdapter(strategy, entityContext);
        }
    });
}
Also used : IBuilder(org.whole.lang.builders.IBuilder) PatternsSpecificBuilderAdapter(org.whole.lang.patterns.builders.PatternsSpecificBuilderAdapter) IPatternsBuilder(org.whole.lang.patterns.builders.IPatternsBuilder) IEntityContext(org.whole.lang.contexts.IEntityContext) IBuilderFactory(org.whole.lang.builders.IBuilderFactory) PatternsGenericBuilderAdapter(org.whole.lang.patterns.builders.PatternsGenericBuilderAdapter)

Aggregations

IBuilder (org.whole.lang.builders.IBuilder)1 IBuilderFactory (org.whole.lang.builders.IBuilderFactory)1 IEntityContext (org.whole.lang.contexts.IEntityContext)1 IPatternsBuilder (org.whole.lang.patterns.builders.IPatternsBuilder)1 PatternsGenericBuilderAdapter (org.whole.lang.patterns.builders.PatternsGenericBuilderAdapter)1 PatternsSpecificBuilderAdapter (org.whole.lang.patterns.builders.PatternsSpecificBuilderAdapter)1