[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: expressing dependent states
alesj
do-not-reply at jboss.com
Wed May 21 19:42:13 EDT 2008
"adrian at jboss.org" wrote :
| But if you don't want to change your code then you can use the "demand"
| instead of "depends' to achieve what you want:
|
| In your case you would
|
| | <demand state="Create">ORBService</demand>
| |
That's not entirely true, since it doesn't do all/exactly what Jonathan asked. ;-)
In this case he's missing dependent state configuration.
He's forced to have ORBService in Installed state, which is something he might not want since he's fine with just Start.
The demand notion is not the right place for this, since demand/supply concept handles things beyond contexts handled by MC - a generic match mechanism. And as such some items we demand might not have dependent state.
Should we create new context-demand notion?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4152514#4152514
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4152514
More information about the jboss-dev-forums
mailing list