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

kabir.khan@jboss.com do-not-reply at jboss.com
Thu Oct 22 14:20:38 EDT 2009


"adrian at jboss.org" wrote : The whole point is that you're supposed to be able to add/interpolate new states.
  | You might as well just make it an enum if you're going to add an ordinal to the state
  | (especially if they are sequential ;-)
  | 
Ales's suggestion actually handles addition of states, although in different controllers states could be different. E.g. In Controller 1 State-A should be before State-B, and in Controller 2 State-B should be before State-A



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

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



More information about the jboss-dev-forums mailing list