Class CDIHandler

  • public class CDIHandler
    extends Object
    Handles the integration of "javax.enterprise.inject" CDI API. Note that this is the only class referring to CDI classes so that it is usable in environments without CDI present. TODO Make this thread-safe
    • Constructor Detail

      • CDIHandler

        public CDIHandler​(Object beanMgr)
    • Method Detail

      • createObjectWithInjectedDependencies

        public <T> T createObjectWithInjectedDependencies​(Class<T> cls)
        Method to instantiate an object of the specified type with injected dependencies.
        Type Parameters:
        T - Type of the object
        cls - The type to instantiate
        The instance
      • close

        public void close()