Package org.apache.wicket.cdi
Class BeanManagerLookup
- java.lang.Object
-
- org.apache.wicket.cdi.BeanManagerLookup
-
public final class BeanManagerLookup extends Object
Defines several strategies for looking up a CDI BeanManager in a portable way. The following strategies are tried (in order):- JNDI under java:comp/BeanManager (default location)
- JNDI under java:comp/env/BeanManager (for servlet containers like Tomcat and Jetty)
- CDI.current().getBeanManager() (portable lookup)
- Fallback
- Author:
- papegaaij
-
-
Method Detail
-
lookup
public static javax.enterprise.inject.spi.BeanManager lookup()
-
-