[jboss-dev-forums] [Design the new POJO MicroContainer] - Wrong check in DeployersImpl.checkControllerContext()
kabir.khan@jboss.com
do-not-reply at jboss.com
Fri Jul 10 08:35:53 EDT 2009
This check looks wrong to me
| protected final void checkControllerContext(
| ControllerContext context,
| Map<String, Throwable> contextsInError,
| Map<String, Set<MissingDependency>> contextsMissingDependencies,
| ControllerStateModel states)
| {
| ,,,
| for (DependencyItem item : dependsInfo.getUnresolvedDependencies(nextState))
| {
| if (item.isResolved() == false)
| {
| ...
| //Wrong?
| ControllerState requiredState = item.getWhenRequired();
| String requiredStateString = requiredState.getStateString();
| if (actualState == null || states.isAfterState(requiredState, actualState))
| {
| MissingDependency missing = new MissingDependency(name, dependency, requiredStateString, actualStateString);
| dependencies.add(missing);
| }
| }
| }
| }
| contextsMissingDependencies.put(name, dependencies);
| }
| }
|
Should we not be using the following instead
| ControllerState dependentState = item.getWhenDependentState();
| String dependentStateString = dependentState.getStateString();
| if (actualState == null || states.isAfterState(dependentState, actualState))
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4242865#4242865
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4242865
More information about the jboss-dev-forums
mailing list