Search in sources :

Example 1 with IJavaScriptBuilder

use of org.whole.lang.javascript.builders.IJavaScriptBuilder in project whole by wholeplatform.

the class JavaScriptLanguageDeployer method deploy.

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

        public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
            return new JavaScriptGenericBuilderAdapter((IJavaScriptBuilder) strategy, entityContext);
        }
    });
    platform.addOperationFactory(JavaScriptLanguageKit.URI, SpecificBuilderAdapterOperation.ID, new IBuilderFactory() {

        public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
            return new JavaScriptSpecificBuilderAdapter(strategy, entityContext);
        }
    });
    platform.addPersistenceKit("org.whole.lang.java.JavaScriptSourceEditor", JavaScriptSourcePersistenceKit.instance());
}
Also used : IBuilder(org.whole.lang.builders.IBuilder) IEntityContext(org.whole.lang.contexts.IEntityContext) JavaScriptSpecificBuilderAdapter(org.whole.lang.javascript.builders.JavaScriptSpecificBuilderAdapter) IJavaScriptBuilder(org.whole.lang.javascript.builders.IJavaScriptBuilder) IBuilderFactory(org.whole.lang.builders.IBuilderFactory) JavaScriptGenericBuilderAdapter(org.whole.lang.javascript.builders.JavaScriptGenericBuilderAdapter)

Aggregations

IBuilder (org.whole.lang.builders.IBuilder)1 IBuilderFactory (org.whole.lang.builders.IBuilderFactory)1 IEntityContext (org.whole.lang.contexts.IEntityContext)1 IJavaScriptBuilder (org.whole.lang.javascript.builders.IJavaScriptBuilder)1 JavaScriptGenericBuilderAdapter (org.whole.lang.javascript.builders.JavaScriptGenericBuilderAdapter)1 JavaScriptSpecificBuilderAdapter (org.whole.lang.javascript.builders.JavaScriptSpecificBuilderAdapter)1