Search in sources :

Example 1 with DBCFGGenericBuilderAdapter

use of org.whole.lang.dbcfg.builders.DBCFGGenericBuilderAdapter in project whole by wholeplatform.

the class DBCFGLanguageDeployer method deploy.

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

        public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
            return new DBCFGGenericBuilderAdapter((IDBCFGBuilder) strategy, entityContext);
        }
    });
    platform.addOperationFactory(DBCFGLanguageKit.URI, SpecificBuilderAdapterOperation.ID, new IBuilderFactory() {

        public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
            return new DBCFGSpecificBuilderAdapter(strategy, entityContext);
        }
    });
}
Also used : IBuilder(org.whole.lang.builders.IBuilder) DBCFGSpecificBuilderAdapter(org.whole.lang.dbcfg.builders.DBCFGSpecificBuilderAdapter) IEntityContext(org.whole.lang.contexts.IEntityContext) DBCFGGenericBuilderAdapter(org.whole.lang.dbcfg.builders.DBCFGGenericBuilderAdapter) IBuilderFactory(org.whole.lang.builders.IBuilderFactory) IDBCFGBuilder(org.whole.lang.dbcfg.builders.IDBCFGBuilder)

Aggregations

IBuilder (org.whole.lang.builders.IBuilder)1 IBuilderFactory (org.whole.lang.builders.IBuilderFactory)1 IEntityContext (org.whole.lang.contexts.IEntityContext)1 DBCFGGenericBuilderAdapter (org.whole.lang.dbcfg.builders.DBCFGGenericBuilderAdapter)1 DBCFGSpecificBuilderAdapter (org.whole.lang.dbcfg.builders.DBCFGSpecificBuilderAdapter)1 IDBCFGBuilder (org.whole.lang.dbcfg.builders.IDBCFGBuilder)1