"kabir.khan(a)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#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...