Class SelfInterceptorBean<T>

  • All Implemented Interfaces:
    jakarta.enterprise.context.spi.Contextual<T>, jakarta.enterprise.inject.spi.Bean<T>, jakarta.enterprise.inject.spi.BeanAttributes<T>, jakarta.enterprise.inject.spi.Interceptor<T>, jakarta.enterprise.inject.spi.PassivationCapable, Serializable, OwbBean<T>

    public class SelfInterceptorBean<T>
    extends InterceptorBean<T>

    Implicit self-interceptor Bean implementation. This is Interceptors which got defined by having an @AroundInvoke, @AroundTimeout, etc method inside a bean itself. In that case all business method invocations on that bean are intercepted via those methods in the bean.

    See Also:
    Serialized Form
    • Constructor Detail

      • SelfInterceptorBean

        public SelfInterceptorBean​(WebBeansContext webBeansContext,
                                   jakarta.enterprise.inject.spi.AnnotatedType<T> annotatedType,
                                   jakarta.enterprise.inject.spi.BeanAttributes<T> beanAttributes,
                                   Class<T> beanClass,
                                   Map<jakarta.enterprise.inject.spi.InterceptionType,​Method[]> interceptionMethods)
    • Method Detail

      • isAroundInvoke

        public boolean isAroundInvoke()
      • getInterceptorBindings

        public Set<Annotation> getInterceptorBindings()
        Returns:
        always an empty Set as this interceptor doesn't have any InterceptorBindings
      • create

        public T create​(jakarta.enterprise.context.spi.CreationalContext<T> context)
        Description copied from class: AbstractOwbBean
        Specified by:
        create in interface jakarta.enterprise.context.spi.Contextual<T>
        Overrides:
        create in class AbstractOwbBean<T>