[jboss-dev-forums] [JBoss Microcontainer Development] - Re: Optimizing ControllerState
alesj
do-not-reply at jboss.com
Sun Nov 1 08:11:30 EST 2009
"kabir.khan at jboss.com" wrote :
| Although a state has been created via a registry, as I understand it it that does not mean it is valid in a particular controller, e.g.:
|
| | Controller controllerA = ..
| | Controller controllerB = ..
| |
| | ControllerState stateA = StateRegistry.getState("A");
| | controllerA.addState(stateA, null);
| | ControllerState stateB = StateRegistry.getState("B");
| | controllerB.addState(stateB, null);
| |
| stateA will not be valid in controllerB, and vice versa. Unless the getState() belongs to the controller and adds it automatically, in which case Controller.addState() becomes superfluous.
|
Registry is an impl detail of CSModel.
But yeah, I see the point of CSM::isValid(CS) now.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263349#4263349
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263349
More information about the jboss-dev-forums
mailing list