[jboss-dev-forums] [JBoss Microcontainer Development] - Re: Optimizing ControllerState

alesj do-not-reply at jboss.com
Thu Oct 29 15:11:43 EDT 2009


"kabir.khan at jboss.com" wrote : Similarly, it also seems like INSTALLED is taken to always be the final state, e.g.
  | 
  |   |    public ControllerContext getInstalledContext(Object name)
  |   |    {
  |   |       return getContext(name, ControllerState.INSTALLED);
  |   |    }
  |   | 
  | Since INSTALLED has special meaning, if there are states beyond INSTALLED, contexts in those states would not be reported as being installed. Should I enforce that INSTALLED is the final state?
Actually they are reported, see AbstractController::getContext

  |          ControllerContext result = getRegisteredControllerContext(name, false);
  |          if (result != null && state != null && isBeforeState(result.getState(), state))
  |          {
  |             return null;
  |          }
  | 

But AbstractKernelController::getContext could be fixed to apply this the same way.


View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263047#4263047

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263047



More information about the jboss-dev-forums mailing list