Class CDIUtil

  • public class CDIUtil
    extends java.lang.Object
    Some generic utility for use with CDI.

    Applicable to CDI version 1.0 or later

    To specify a different JNDI name for the bean manager, please specify them in zk.xml as follows. (By default is java:comp/env/BeanManager) since 5.0.11.

    • Constructor Summary

      Constructor Description
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static javax.enterprise.inject.spi.BeanManager getBeanManager()
      Returns the CDI BeanManager.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CDIUtil

        public CDIUtil()
    • Method Detail

      • getBeanManager

        public static javax.enterprise.inject.spi.BeanManager getBeanManager()
        Returns the CDI BeanManager. Default implementation use JNDI to lookup "java:comp/env/BeanManager".