[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Does ScopeKey need to maintain a sorted (in ScopeLevel.l
alesj
do-not-reply at jboss.com
Thu Aug 6 06:48:10 EDT 2009
"jason.greene at jboss.com" wrote : This class should *definitely* be immutable.
I don't think this class was ever meant to me immutable,
otherwise there wouldn't be a freeze()/isFrozen() methods.
Afaik the idea is to have it mutable/dynamic to a certain point,
e.g. different layers add different scopes,
once we're past of allowing this additions we freeze it in order to be able to do deterministic lookups.
>From reading Scott's observations, array looks like a possible impl.
e.g. the parent get/check could easily be done with System::arraycopy
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4248422#4248422
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4248422
More information about the jboss-dev-forums
mailing list