Search in sources :

Example 1 with ChangesSpecificBuilderAdapter

use of org.whole.lang.changes.builders.ChangesSpecificBuilderAdapter in project whole by wholeplatform.

the class ChangesLanguageDeployer method deploy.

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

        public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
            return new ChangesGenericBuilderAdapter((IChangesBuilder) strategy, entityContext);
        }
    });
    platform.addOperationFactory(ChangesLanguageKit.URI, SpecificBuilderAdapterOperation.ID, new IBuilderFactory() {

        public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
            return new ChangesSpecificBuilderAdapter(strategy, entityContext);
        }
    });
}
Also used : IBuilder(org.whole.lang.builders.IBuilder) ChangesSpecificBuilderAdapter(org.whole.lang.changes.builders.ChangesSpecificBuilderAdapter) IEntityContext(org.whole.lang.contexts.IEntityContext) ChangesGenericBuilderAdapter(org.whole.lang.changes.builders.ChangesGenericBuilderAdapter) IBuilderFactory(org.whole.lang.builders.IBuilderFactory) IChangesBuilder(org.whole.lang.changes.builders.IChangesBuilder)

Aggregations

IBuilder (org.whole.lang.builders.IBuilder)1 IBuilderFactory (org.whole.lang.builders.IBuilderFactory)1 ChangesGenericBuilderAdapter (org.whole.lang.changes.builders.ChangesGenericBuilderAdapter)1 ChangesSpecificBuilderAdapter (org.whole.lang.changes.builders.ChangesSpecificBuilderAdapter)1 IChangesBuilder (org.whole.lang.changes.builders.IChangesBuilder)1 IEntityContext (org.whole.lang.contexts.IEntityContext)1