git://wamblee.org
/
utils
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(no commit message)
[utils]
/
support
/
cdi
/
src
/
main
/
java
/
org
/
wamblee
/
cdi
/
BeanManagerLookup.java
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 87a578f176caa8c77d2ff6b6667e3114e32fb208..8d9ab46d4c252ab11675e706db2e2f0c52c445c3 100644
(file)
--- 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.
*
* 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 {
* @author Erik Brakkee
*/
public class BeanManagerLookup {