Class CdiComponentProvider


  • public class CdiComponentProvider
    extends org.glassfish.tyrus.core.ComponentProvider
    Provides the instance for CDI class.
    Author:
    Stepan Kopriva
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T> java.lang.Object create​(java.lang.Class<T> c)  
      boolean destroy​(java.lang.Object o)  
      boolean isApplicable​(java.lang.Class<?> c)  
      • Methods inherited from class org.glassfish.tyrus.core.ComponentProvider

        getInvocableMethod
      • Methods inherited from class java.lang.Object

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

      • CdiComponentProvider

        public CdiComponentProvider()
                             throws javax.naming.NamingException
        Constructor.

        Looks up the BeanManager which is later used to provide the instance.

        Throws:
        javax.naming.NamingException - when Bean Manager cannot be looked up.
    • Method Detail

      • isApplicable

        public boolean isApplicable​(java.lang.Class<?> c)
        Specified by:
        isApplicable in class org.glassfish.tyrus.core.ComponentProvider
      • create

        public <T> java.lang.Object create​(java.lang.Class<T> c)
        Specified by:
        create in class org.glassfish.tyrus.core.ComponentProvider
      • destroy

        public boolean destroy​(java.lang.Object o)
        Specified by:
        destroy in class org.glassfish.tyrus.core.ComponentProvider