[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Scoped Kernels
adrian@jboss.org
do-not-reply at jboss.com
Fri Feb 23 12:34:16 EST 2007
"alesj" wrote :
| "adrian at jboss.org" wrote :
| | There are a number of apis that need updating to understand Scope.
| | i.e. passing in the ScopeKey as an additional parameter.
| |
| | The old api should invoke the new api with the default scope.
| |
| | Retrieving the context is one of them.
| |
| | There are other apis that need to be able to retrieve all contexts in all scopes
| | and include the scope in the identity.
| | The checking of incomplete contexts in the kernel deployer
| | or the repository service is one of the latter.
| If you could just 'mark' all the necessary API methods that need updateing, I'll go and 'fix' them.
Anything that takes a "name" and returns a ControllerContext
is in the first category.
e.g.
| ControllerContext getInstalledContext(Object name);
|
Anyhing that returns a collection of controller contexts is in the second category
| Set<ControllerContext> getNotInstalled();
|
I don't think there is anything that returns a list of names
but there are places like the incomplete deployment code
that needs to understand that the full unique name is no longer just
getName() but also needs to use ConstrollerContext.getScopeKey()
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4021219#4021219
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4021219
More information about the jboss-dev-forums
mailing list