Search in sources :

Example 1 with TemplatesSpecificBuilderAdapter

use of org.whole.lang.templates.builders.TemplatesSpecificBuilderAdapter in project whole by wholeplatform.

the class TemplatesLanguageDeployer method deploy.

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

        public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
            return new TemplatesGenericBuilderAdapter((ITemplatesBuilder) strategy, entityContext);
        }
    });
    platform.addOperationFactory(TemplatesLanguageKit.URI, SpecificBuilderAdapterOperation.ID, new IBuilderFactory() {

        public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
            return new TemplatesSpecificBuilderAdapter(strategy, entityContext);
        }
    });
}
Also used : IBuilder(org.whole.lang.builders.IBuilder) IEntityContext(org.whole.lang.contexts.IEntityContext) TemplatesGenericBuilderAdapter(org.whole.lang.templates.builders.TemplatesGenericBuilderAdapter) ITemplatesBuilder(org.whole.lang.templates.builders.ITemplatesBuilder) TemplatesSpecificBuilderAdapter(org.whole.lang.templates.builders.TemplatesSpecificBuilderAdapter) IBuilderFactory(org.whole.lang.builders.IBuilderFactory)

Aggregations

IBuilder (org.whole.lang.builders.IBuilder)1 IBuilderFactory (org.whole.lang.builders.IBuilderFactory)1 IEntityContext (org.whole.lang.contexts.IEntityContext)1 ITemplatesBuilder (org.whole.lang.templates.builders.ITemplatesBuilder)1 TemplatesGenericBuilderAdapter (org.whole.lang.templates.builders.TemplatesGenericBuilderAdapter)1 TemplatesSpecificBuilderAdapter (org.whole.lang.templates.builders.TemplatesSpecificBuilderAdapter)1