Search in sources :

Example 1 with VersionsSpecificBuilderAdapter

use of org.whole.lang.versions.builders.VersionsSpecificBuilderAdapter in project whole by wholeplatform.

the class VersionsLanguageDeployer method deploy.

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

        public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
            return new VersionsGenericBuilderAdapter((IVersionsBuilder) strategy, entityContext);
        }
    });
    platform.addOperationFactory(VersionsLanguageKit.URI, SpecificBuilderAdapterOperation.ID, new IBuilderFactory() {

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