use of org.whole.lang.javascript.builders.JavaScriptSpecificBuilderAdapter 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());
}
Aggregations