Search in sources :

Example 1 with XsdSpecificBuilderAdapter

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

the class XsdLanguageDeployer method deploy.

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

        public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
            return new XsdGenericBuilderAdapter((IXsdBuilder) strategy, entityContext);
        }
    });
    platform.addOperationFactory(XsdLanguageKit.URI, SpecificBuilderAdapterOperation.ID, new IBuilderFactory() {

        public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
            return new XsdSpecificBuilderAdapter(strategy, entityContext);
        }
    });
}
Also used : IBuilder(org.whole.lang.builders.IBuilder) IEntityContext(org.whole.lang.contexts.IEntityContext) XsdSpecificBuilderAdapter(org.whole.lang.xsd.builders.XsdSpecificBuilderAdapter) IBuilderFactory(org.whole.lang.builders.IBuilderFactory) XsdGenericBuilderAdapter(org.whole.lang.xsd.builders.XsdGenericBuilderAdapter) IXsdBuilder(org.whole.lang.xsd.builders.IXsdBuilder)

Aggregations

IBuilder (org.whole.lang.builders.IBuilder)1 IBuilderFactory (org.whole.lang.builders.IBuilderFactory)1 IEntityContext (org.whole.lang.contexts.IEntityContext)1 IXsdBuilder (org.whole.lang.xsd.builders.IXsdBuilder)1 XsdGenericBuilderAdapter (org.whole.lang.xsd.builders.XsdGenericBuilderAdapter)1 XsdSpecificBuilderAdapter (org.whole.lang.xsd.builders.XsdSpecificBuilderAdapter)1