[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Does ScopeKey need to maintain a sorted (in ScopeLevel.l
smarlow@redhat.com
do-not-reply at jboss.com
Tue Aug 18 13:39:36 EDT 2009
"adrian at jboss.org" wrote : "adrian at jboss.org" wrote :
| | You do need something like the ScopeKey being mutable until the last minute
| | because things like the CLASS scope may not be known until the bean instance
| | is constructed from a factory. Only then do you know the class.
| |
|
| By the way, that's another HACK (and marked as such in the code)
| see KernelScopeInfo and InstantiateAction.
| If you can think of a better way to do it then feel free to fix it. ;-)
|
Would it be better to use an UnmodifiableScopeKey instance to represent the frozen state? ScopeKey.getOptimizedKey() currently (in my local repository) returns an UnmodifiableScopeKey.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4250241#4250241
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4250241
More information about the jboss-dev-forums
mailing list