Search in sources :

Example 1 with RDBGenericBuilderAdapter

use of org.whole.lang.rdb.builders.RDBGenericBuilderAdapter in project whole by wholeplatform.

the class RDBLanguageDeployer method deploy.

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

        public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
            return new RDBGenericBuilderAdapter((IRDBBuilder) strategy, entityContext);
        }
    });
    platform.addOperationFactory(RDBLanguageKit.URI, SpecificBuilderAdapterOperation.ID, new IBuilderFactory() {

        public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
            return new RDBSpecificBuilderAdapter(strategy, entityContext);
        }
    });
}
Also used : IBuilder(org.whole.lang.builders.IBuilder) IRDBBuilder(org.whole.lang.rdb.builders.IRDBBuilder) RDBSpecificBuilderAdapter(org.whole.lang.rdb.builders.RDBSpecificBuilderAdapter) IEntityContext(org.whole.lang.contexts.IEntityContext) IBuilderFactory(org.whole.lang.builders.IBuilderFactory) RDBGenericBuilderAdapter(org.whole.lang.rdb.builders.RDBGenericBuilderAdapter)

Aggregations

IBuilder (org.whole.lang.builders.IBuilder)1 IBuilderFactory (org.whole.lang.builders.IBuilderFactory)1 IEntityContext (org.whole.lang.contexts.IEntityContext)1 IRDBBuilder (org.whole.lang.rdb.builders.IRDBBuilder)1 RDBGenericBuilderAdapter (org.whole.lang.rdb.builders.RDBGenericBuilderAdapter)1 RDBSpecificBuilderAdapter (org.whole.lang.rdb.builders.RDBSpecificBuilderAdapter)1