Search in sources :

Example 1 with IPojoBuilder

use of org.whole.lang.pojo.builders.IPojoBuilder in project whole by wholeplatform.

the class PojoLanguageDeployer method deploy.

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

        public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
            return new PojoGenericBuilderAdapter((IPojoBuilder) strategy, entityContext);
        }
    });
    platform.addOperationFactory(PojoLanguageKit.URI, SpecificBuilderAdapterOperation.ID, new IBuilderFactory() {

        public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
            return new PojoSpecificBuilderAdapter(strategy, entityContext);
        }
    });
    platform.addOperationFactory(PojoLanguageKit.URI, NormalizerOperation.ID, new IVisitorFactory() {

        public IVisitor create(IOperation operation, int stage) {
            return new PojoNormalizerVisitor();
        }
    });
}
Also used : IBuilder(org.whole.lang.builders.IBuilder) IOperation(org.whole.lang.operations.IOperation) PojoSpecificBuilderAdapter(org.whole.lang.pojo.builders.PojoSpecificBuilderAdapter) IPojoBuilder(org.whole.lang.pojo.builders.IPojoBuilder) IVisitor(org.whole.lang.visitors.IVisitor) PojoNormalizerVisitor(org.whole.lang.pojo.visitors.PojoNormalizerVisitor) IEntityContext(org.whole.lang.contexts.IEntityContext) IBuilderFactory(org.whole.lang.builders.IBuilderFactory) PojoGenericBuilderAdapter(org.whole.lang.pojo.builders.PojoGenericBuilderAdapter) IVisitorFactory(org.whole.lang.visitors.IVisitorFactory)

Aggregations

IBuilder (org.whole.lang.builders.IBuilder)1 IBuilderFactory (org.whole.lang.builders.IBuilderFactory)1 IEntityContext (org.whole.lang.contexts.IEntityContext)1 IOperation (org.whole.lang.operations.IOperation)1 IPojoBuilder (org.whole.lang.pojo.builders.IPojoBuilder)1 PojoGenericBuilderAdapter (org.whole.lang.pojo.builders.PojoGenericBuilderAdapter)1 PojoSpecificBuilderAdapter (org.whole.lang.pojo.builders.PojoSpecificBuilderAdapter)1 PojoNormalizerVisitor (org.whole.lang.pojo.visitors.PojoNormalizerVisitor)1 IVisitor (org.whole.lang.visitors.IVisitor)1 IVisitorFactory (org.whole.lang.visitors.IVisitorFactory)1