Providers.getContextResolver makes no sense

From: Bill Burke <>
Date: Wed, 27 Aug 2008 15:38:44 -0400

Specifically the objectType parameter. The objectType parameter assumes
it will be used to call ContextResolver.getContext(objecType). The
resolver that doesn't return null is returned.

This is really bad because the ContextResolver might be used as a
factory and may create multiple objects which could have undesirable
effects on applications.

I suggest removing the objectType parameter from
Providers.getContextResolver and having this method return a proxy that
does the action.


Bill Burke
JBoss, a division of Red Hat