Class CustomInterceptor

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

    public class CustomInterceptor
    extends AbstractInterceptor<FooInterceptor>
    implements jakarta.enterprise.inject.spi.PassivationCapable
    Extension-provided implementation of Interceptor. Delegates to FooInterceptor (which in real world could represent a legacy-style interceptor - e.g. Seam 2 interceptor)
    Author:
    Jozef Hartinger
    • Constructor Detail

      • CustomInterceptor

        public CustomInterceptor()
    • Method Detail

      • getInterceptorBindings

        public Set<Annotation> getInterceptorBindings()
        Specified by:
        getInterceptorBindings in interface jakarta.enterprise.inject.spi.Interceptor<FooInterceptor>
      • intercepts

        public boolean intercepts​(jakarta.enterprise.inject.spi.InterceptionType type)
        Specified by:
        intercepts in interface jakarta.enterprise.inject.spi.Interceptor<FooInterceptor>
      • intercept

        public Object intercept​(jakarta.enterprise.inject.spi.InterceptionType type,
                                FooInterceptor instance,
                                jakarta.interceptor.InvocationContext ctx)
        Specified by:
        intercept in interface jakarta.enterprise.inject.spi.Interceptor<FooInterceptor>
      • getBeanClass

        public Class<?> getBeanClass()
        Specified by:
        getBeanClass in interface jakarta.enterprise.inject.spi.Bean<FooInterceptor>
      • isInvoked

        public static boolean isInvoked()
      • reset

        public static void reset()
      • getId

        public String getId()
        Specified by:
        getId in interface jakarta.enterprise.inject.spi.PassivationCapable