You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwebbeans.apache.org by David Jencks <da...@yahoo.com> on 2010/10/24 10:21:55 UTC

Why does ContextFactory duplicate the by-classloader indexing of DefaultSingletonService?

ContextFactory maintains its own map of classloader to ContextService instance, but if it doesn't find one it gets it from the singleton service which is already by default indexed by classloader.  Is there some point to maintaining the two maps?

Since indexing by classloader doesn't work in many possible ee environments (details later), and the singleton service can be replaced by one that does, I'd prefer it if the extra map in ContextFactory could be removed.

thanks
david jencks