public void propagate(AppScope config) { Iterator configIt = config.getScopes().iterator(); while (configIt.hasNext()) { AppScope scopeConfig = (AppScope) configIt.next(); scopeConfig.accept(this); } }
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; } }