[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 4 12:07:29 EDT 2009
"smarlow at redhat.com" wrote :
| It doesn't seem very difficult to eliminate the get/is Parent depenency on a sorted scopes collection as we always know the "maxScopeLevel" which identifies the "child" entry (I'm still not sure if it is correct to refer to the last entry as the "child" ;). Given an unordered collection, getParent, returns all entries minus the "maxScopeLevel" and the same can be used for isParent checking.
|
I made the above changes to isParent + getParent and we pass the unit tests (for what that is worth ;)
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4247920#4247920
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4247920
More information about the jboss-dev-forums
mailing list