Class AbstractProducer<T>

    • Constructor Detail

      • AbstractProducer

        public AbstractProducer()
      • AbstractProducer

        public AbstractProducer​(Set<jakarta.enterprise.inject.spi.InjectionPoint> points)
    • Method Detail

      • defineInterceptorStack

        public void defineInterceptorStack​(jakarta.enterprise.inject.spi.Bean<T> bean,
                                           jakarta.enterprise.inject.spi.AnnotatedType<T> annotatedType,
                                           WebBeansContext webBeansContext)
        Configure bean instance interceptor stack. This method gets invoked in the ValidateBean phase and will fill all the interceptor information into the given InjectionTargetBean
      • getInjectionPoints

        public Set<jakarta.enterprise.inject.spi.InjectionPoint> getInjectionPoints()
        Specified by:
        getInjectionPoints in interface jakarta.enterprise.inject.spi.Producer<T>
      • produce

        public T produce​(jakarta.enterprise.context.spi.CreationalContext<T> creationalContext)
        Specified by:
        produce in interface jakarta.enterprise.inject.spi.Producer<T>
      • filterDecorators

        protected List<jakarta.enterprise.inject.spi.Decorator<?>> filterDecorators​(T instance,
                                                                                    List<jakarta.enterprise.inject.spi.Decorator<?>> decorators)
      • dispose

        public void dispose​(T instance)
        Specified by:
        dispose in interface jakarta.enterprise.inject.spi.Producer<T>
      • produce

        protected abstract T produce​(Map<jakarta.enterprise.inject.spi.Interceptor<?>,​?> interceptorInstances,
                                     CreationalContextImpl<T> creationalContext)
      • getMethodInterceptors

        protected Map<Method,​List<jakarta.enterprise.inject.spi.Interceptor<?>>> getMethodInterceptors()
      • needsProxy

        protected boolean needsProxy()
      • hasInterceptorInfo

        protected boolean hasInterceptorInfo()
      • unwrapProxyInstance

        protected T unwrapProxyInstance​(T probableProxyInstance)
        Helper method to unwrap the internal proxy instance. Returns the instance directly if this is not a proxied instance.
      • defineLifecycleInterceptors

        protected void defineLifecycleInterceptors​(jakarta.enterprise.inject.spi.Bean<T> bean,
                                                   jakarta.enterprise.inject.spi.AnnotatedType<T> annotatedType,
                                                   WebBeansContext webBeansContext)