Interface JCDIService


  • @Contract
    public interface JCDIService
    • Method Detail

      • isCurrentModuleJCDIEnabled

        boolean isCurrentModuleJCDIEnabled()
      • isJCDIEnabled

        boolean isJCDIEnabled​(com.sun.enterprise.deployment.BundleDescriptor bundle)
      • isCDIScoped

        boolean isCDIScoped​(Class<?> clazz)
      • createManagedObject

        <T> JCDIService.JCDIInjectionContext<T> createManagedObject​(Class<T> managedClass,
                                                                    com.sun.enterprise.deployment.BundleDescriptor bundle,
                                                                    boolean invokePostConstruct)
      • injectManagedObject

        void injectManagedObject​(Object managedObject,
                                 com.sun.enterprise.deployment.BundleDescriptor bundle)
      • createInterceptorInstance

        <T> T createInterceptorInstance​(Class<T> interceptorClass,
                                        com.sun.enterprise.deployment.EjbDescriptor ejbDesc,
                                        JCDIService.JCDIInjectionContext ejbContext,
                                        Set<com.sun.enterprise.deployment.EjbInterceptor> ejbInterceptors)
        Create an inteceptor instance for an ejb.
        Parameters:
        interceptorClass - The interceptor class.
        ejbDesc - The ejb descriptor of the ejb for which the interceptor is created.
        ejbContext - The ejb context.
        ejbInterceptors - All of the ejb interceptors for the ejb.
        Returns:
        The interceptor instance.
      • createJCDIInjectionContext

        <T> JCDIService.JCDIInjectionContext<T> createJCDIInjectionContext​(com.sun.enterprise.deployment.EjbDescriptor ejbDesc,
                                                                           Map<Class,​Object> ejbInfo)
        Create an ejb via CDI.
        Parameters:
        ejbDesc - The ejb descriptor
        ejbInfo - Information about the ejb. Entries are the com.sun.ejb.containers.BaseContainer and com.sun.ejb.containers.EJBContextImpl
        Returns:
        The created EJB.
      • createEmptyJCDIInjectionContext

        JCDIService.JCDIInjectionContext createEmptyJCDIInjectionContext()
        Create an empty JCDIInjectionContext.
        Returns:
        The empty JCDIInjectionContext.