From: erik Date: Thu, 22 Jul 2010 17:29:31 +0000 (+0000) Subject: (no commit message) X-Git-Tag: wamblee-utils-0.4~35 X-Git-Url: http://wamblee.org/gitweb/?a=commitdiff_plain;h=78e9c87bfea4ca504046a27e083d16a52090b1bd;p=utils --- diff --git a/support/cdi/src/main/java/org/wamblee/cdi/BeanManagerLookup.java b/support/cdi/src/main/java/org/wamblee/cdi/BeanManagerLookup.java index 87a578f1..8d9ab46d 100644 --- a/support/cdi/src/main/java/org/wamblee/cdi/BeanManagerLookup.java +++ b/support/cdi/src/main/java/org/wamblee/cdi/BeanManagerLookup.java @@ -28,6 +28,10 @@ import javax.naming.NamingException; * In case no bean manager is found the beanmanager is set to null and the * problem is logged. * + * This class does caching of the obtained reference to the bean manager. + * As a result, it is necessary to call {@link #setBeanManager(BeanManager)} + * in the setup phase of unit tests to make sure that the lookup is done again. + * * @author Erik Brakkee */ public class BeanManagerLookup {