Search in sources :

Example 1 with IMappingBuilder

use of org.whole.lang.xsd.mapping.builders.IMappingBuilder in project whole by wholeplatform.

the class MappingLanguageDeployer method deploy.

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

        public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
            return new MappingGenericBuilderAdapter((IMappingBuilder) strategy, entityContext);
        }
    });
    platform.addOperationFactory(MappingLanguageKit.URI, SpecificBuilderAdapterOperation.ID, new IBuilderFactory() {

        public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
            return new MappingSpecificBuilderAdapter(strategy, entityContext);
        }
    });
}
Also used : IBuilder(org.whole.lang.builders.IBuilder) MappingGenericBuilderAdapter(org.whole.lang.xsd.mapping.builders.MappingGenericBuilderAdapter) MappingSpecificBuilderAdapter(org.whole.lang.xsd.mapping.builders.MappingSpecificBuilderAdapter) IEntityContext(org.whole.lang.contexts.IEntityContext) IMappingBuilder(org.whole.lang.xsd.mapping.builders.IMappingBuilder) 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 IMappingBuilder (org.whole.lang.xsd.mapping.builders.IMappingBuilder)1 MappingGenericBuilderAdapter (org.whole.lang.xsd.mapping.builders.MappingGenericBuilderAdapter)1 MappingSpecificBuilderAdapter (org.whole.lang.xsd.mapping.builders.MappingSpecificBuilderAdapter)1