Search in sources :

Example 1 with JSONSpecificBuilderAdapter

use of org.whole.lang.json.builders.JSONSpecificBuilderAdapter in project whole by wholeplatform.

the class JSONLanguageDeployer method deploy.

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

        public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
            return new JSONGenericBuilderAdapter((IJSONBuilder) strategy, entityContext);
        }
    });
    platform.addOperationFactory(JSONLanguageKit.URI, SpecificBuilderAdapterOperation.ID, new IBuilderFactory() {

        public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
            return new JSONSpecificBuilderAdapter(strategy, entityContext);
        }
    });
}
Also used : IBuilder(org.whole.lang.builders.IBuilder) JSONSpecificBuilderAdapter(org.whole.lang.json.builders.JSONSpecificBuilderAdapter) IJSONBuilder(org.whole.lang.json.builders.IJSONBuilder) IEntityContext(org.whole.lang.contexts.IEntityContext) JSONGenericBuilderAdapter(org.whole.lang.json.builders.JSONGenericBuilderAdapter) 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 IJSONBuilder (org.whole.lang.json.builders.IJSONBuilder)1 JSONGenericBuilderAdapter (org.whole.lang.json.builders.JSONGenericBuilderAdapter)1 JSONSpecificBuilderAdapter (org.whole.lang.json.builders.JSONSpecificBuilderAdapter)1