예제 #1
0
  public void loadDefaultLibraries() {
    LoadLibraryEventListener listener =
        createDefaultNamespaceEventListener(scopeService, assetService);
    loadLibraryEventListeners.add(listener);

    // no need to use import tag on wongilla script to import this default namespace
    importedNamespaceNames.add(listener.getNamespaceFullName());
  }
예제 #2
0
  public void loadLibraries() {

    for (LoadLibraryEventListener listener : loadLibraryEventListeners) {
      // only import if it is never created before.
      if (!Namespace.isNamespaceCreated(rootNamespace, "ROOT." + listener.getNamespaceFullName())) {
        listener.addLibrary(rootNamespace, scopeService, assetService);
      }
    }
  }