dev@jsr311.java.net

Providers.getContextResolver makes no sense

From: Bill Burke <bburke_at_redhat.com>
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

-- 
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com