Class SimpleCDI

  • All Implemented Interfaces:
    jakarta.enterprise.inject.Instance<Object>, jakarta.inject.Provider<Object>, Iterable<Object>, org.jboss.weld.inject.WeldInstance<Object>

    public class SimpleCDI
    extends AbstractCDI<Object>
    Provides convenient way to access the CDI container.
    Author:
    Jozef Hartinger
    • Constructor Detail

      • SimpleCDI

        public SimpleCDI()
      • SimpleCDI

        public SimpleCDI​(Container container)
    • Method Detail

      • unsatisfiedBeanManager

        protected BeanManagerImpl unsatisfiedBeanManager​(String callerClassName)
        Callback that allows to override the behavior when CDI.current() is not called from within a bean archive.
      • ambiguousBeanManager

        protected BeanManagerImpl ambiguousBeanManager​(String callerClassName,
                                                       Set<BeanManagerImpl> managers)
        Callback that allows to override the behavior when class that invoked CDI.current() is placed in multiple bean archives.
      • getBeanManager

        public BeanManagerProxy getBeanManager()
        Specified by:
        getBeanManager in class jakarta.enterprise.inject.spi.CDI<Object>
      • getContainer

        protected Container getContainer()
      • cleanup

        public void cleanup()