/** * Create a new AbstractControllerContext. * * @param name the name * @param target the target */ public AbstractControllerContext(Object name, Object target) { if (name == null) throw new IllegalArgumentException("Null name"); this.name = name; this.target = target; initScopeInfo(); }
/** * Create a new AbstractControllerContext. * * @param name the name * @param aliases the aliases * @param actions the actions * @param dependencies the dependencies * @param target the target */ public AbstractControllerContext(Object name, Set<Object> aliases, ControllerContextActions actions, DependencyInfo dependencies, Object target) { if (name == null) throw new IllegalArgumentException("Null name"); if (actions == null) throw new IllegalArgumentException("Null actions"); this.name = name; this.actions = actions; if (dependencies == null) this.dependencies = new AbstractDependencyInfo(); else this.dependencies = dependencies; this.target = target; setAliases(aliases); initScopeInfo(); }