Search in sources :

Example 1 with ITypesBuilder

use of org.whole.lang.types.builders.ITypesBuilder in project whole by wholeplatform.

the class TypesLanguageDeployer method deploy.

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

        public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
            return new TypesGenericBuilderAdapter((ITypesBuilder) strategy, entityContext);
        }
    });
    platform.addOperationFactory(TypesLanguageKit.URI, SpecificBuilderAdapterOperation.ID, new IBuilderFactory() {

        public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
            return new TypesSpecificBuilderAdapter(strategy, entityContext);
        }
    });
}
Also used : IBuilder(org.whole.lang.builders.IBuilder) TypesGenericBuilderAdapter(org.whole.lang.types.builders.TypesGenericBuilderAdapter) IEntityContext(org.whole.lang.contexts.IEntityContext) IBuilderFactory(org.whole.lang.builders.IBuilderFactory) TypesSpecificBuilderAdapter(org.whole.lang.types.builders.TypesSpecificBuilderAdapter) ITypesBuilder(org.whole.lang.types.builders.ITypesBuilder)

Aggregations

IBuilder (org.whole.lang.builders.IBuilder)1 IBuilderFactory (org.whole.lang.builders.IBuilderFactory)1 IEntityContext (org.whole.lang.contexts.IEntityContext)1 ITypesBuilder (org.whole.lang.types.builders.ITypesBuilder)1 TypesGenericBuilderAdapter (org.whole.lang.types.builders.TypesGenericBuilderAdapter)1 TypesSpecificBuilderAdapter (org.whole.lang.types.builders.TypesSpecificBuilderAdapter)1