Exemplo n.º 1
0
  public void propagate(AppScope config) {
    Iterator configIt = config.getScopes().iterator();

    while (configIt.hasNext()) {
      AppScope scopeConfig = (AppScope) configIt.next();
      scopeConfig.accept(this);
    }
  }
Exemplo n.º 2
0
  public void visit(AppScope appScope) {
    Scope scope = findScope(appScope.getName(), parent);
    // TODO if not found throw error?
    if (scope != null) {
      scopeConfigurations.put(scope, appScope);

      Scope previousParent = parent;
      parent = scope;
      propagate(appScope);
      parent = previousParent;
    }
  }