[jboss-dev-forums] [Design the new POJO MicroContainer] - ControllerStates helper/util
alesj
do-not-reply at jboss.com
Tue Apr 8 04:56:45 EDT 2008
I'm thinking of introducing something like this
| public class ControllerStates
| {
| public static ControllerState previousState(List<ControllerState> states, ControllerState state);
|
| public static int currentStateIndex(List<ControllerState> states, ControllerState state);
|
| public static ControllerState nextState(List<ControllerState> states, ControllerState state);
|
| ...
| }
|
to handle this previous/next state lookup in a singe place.
Currently there is a bunch of code that does this, mostly w/o any constraints check, e.g. no such state in states.
I'll push it in org.jboss.dependency.spi.helpers package.
Or should/could this be on the ControllerState already?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142290#4142290
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142290
More information about the jboss-dev-forums
mailing list