[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: JBMICROCONT-309; aliases and scoping
alesj
do-not-reply at jboss.com
Wed Jul 2 05:46:47 EDT 2008
"alesj" wrote :
| Issue#1: Controller should have option to do just local lookup - otherwise order of bean deployment is important; e.g. picking up bean from parent (already available), where you would actually want scoped one (not available at dependency item resolution)
| This can also lead to CCE issues; parent bean being of wrong type
|
I'm pretty much done on other issues (I won't be moving direct alias registration into post PreInstall, since there is a simple workaround).
But I would need some new SPI on the Controller to handle issue#1.
I'm thinking of something like this
| ControllerContext getLocalContext(Object name, ControllerState state);
|
Which would be noop.
It's just that scoped controller wouldn't return parent's contexts as well.
Then user could mark inject as local.
| <inject bean="mybean" local="true"/>
|
And then alias could also have option to be just locally resolved - probably similar way as I did scoped alias -> via new alias controller context.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4161985#4161985
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4161985
More information about the jboss-dev-forums
mailing list