Search in sources :

Example 1 with EditorsGenericBuilderAdapter

use of org.whole.lang.editors.builders.EditorsGenericBuilderAdapter in project whole by wholeplatform.

the class EditorsLanguageDeployer method deploy.

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

        public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
            return new EditorsGenericBuilderAdapter((IEditorsBuilder) strategy, entityContext);
        }
    });
    platform.addOperationFactory(EditorsLanguageKit.URI, SpecificBuilderAdapterOperation.ID, new IBuilderFactory() {

        public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
            return new EditorsSpecificBuilderAdapter(strategy, entityContext);
        }
    });
}
Also used : IBuilder(org.whole.lang.builders.IBuilder) EditorsSpecificBuilderAdapter(org.whole.lang.editors.builders.EditorsSpecificBuilderAdapter) IEditorsBuilder(org.whole.lang.editors.builders.IEditorsBuilder) IEntityContext(org.whole.lang.contexts.IEntityContext) EditorsGenericBuilderAdapter(org.whole.lang.editors.builders.EditorsGenericBuilderAdapter) 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 EditorsGenericBuilderAdapter (org.whole.lang.editors.builders.EditorsGenericBuilderAdapter)1 EditorsSpecificBuilderAdapter (org.whole.lang.editors.builders.EditorsSpecificBuilderAdapter)1 IEditorsBuilder (org.whole.lang.editors.builders.IEditorsBuilder)1