@Override
  public void inject(Class<?> klass) throws DataException, ServiceException {

    // loads function def table from annotated class
    ScriptExtensions extensions = new ScriptProxy(klass);

    // load func def table and set parent to the default script context
    ScriptContext defaultScriptContext = (ScriptContext) AppObjectRepository.getObject("DefaultScriptContext");
    extensions.load(defaultScriptContext);

    // register these extensions
    defaultScriptContext.registerExtension(extensions);
  }
@Override
  public void inject(Class<?> klass) throws DataException, ServiceException {

    
    ScriptExtensions extensions = new ScriptProxy(klass);

    
    ScriptContext defaultScriptContext = (ScriptContext) AppObjectRepository.getObject("DefaultScriptContext");
    extensions.load(defaultScriptContext);

    
    defaultScriptContext.registerExtension(extensions);
  }
@ Override public void inject ( Class < ? > klass ) throws DataException , ServiceException { // loads function def table from annotated class ScriptExtensions extensions = new ScriptProxy ( klass ) ; // load func def table and set parent to the default script context ScriptContext defaultScriptContext = ( ScriptContext ) AppObjectRepository . getObject ( "DefaultScriptContext" ) ; extensions . load ( defaultScriptContext ) ; // register these extensions defaultScriptContext . registerExtension ( extensions ) ; }
{@inheritDoc}
{