Class CustomInterceptor
- java.lang.Object
-
- org.jboss.cdi.tck.tests.full.extensions.interceptors.custom.AbstractInterceptor<FooInterceptor>
-
- org.jboss.cdi.tck.tests.full.extensions.interceptors.custom.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 ofInterceptor. Delegates to FooInterceptor (which in real world could represent a legacy-style interceptor - e.g. Seam 2 interceptor)- Author:
- Jozef Hartinger
-
-
Constructor Summary
Constructors Constructor Description CustomInterceptor()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<?>getBeanClass()StringgetId()Set<Annotation>getInterceptorBindings()Objectintercept(jakarta.enterprise.inject.spi.InterceptionType type, FooInterceptor instance, jakarta.interceptor.InvocationContext ctx)booleanintercepts(jakarta.enterprise.inject.spi.InterceptionType type)static booleanisInvoked()static voidreset()-
Methods inherited from class org.jboss.cdi.tck.tests.full.extensions.interceptors.custom.AbstractInterceptor
create, destroy, getInjectionPoints, getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative, isNullable
-
-
-
-
Method Detail
-
getInterceptorBindings
public Set<Annotation> getInterceptorBindings()
- Specified by:
getInterceptorBindingsin interfacejakarta.enterprise.inject.spi.Interceptor<FooInterceptor>
-
intercepts
public boolean intercepts(jakarta.enterprise.inject.spi.InterceptionType type)
- Specified by:
interceptsin interfacejakarta.enterprise.inject.spi.Interceptor<FooInterceptor>
-
intercept
public Object intercept(jakarta.enterprise.inject.spi.InterceptionType type, FooInterceptor instance, jakarta.interceptor.InvocationContext ctx)
- Specified by:
interceptin interfacejakarta.enterprise.inject.spi.Interceptor<FooInterceptor>
-
getBeanClass
public Class<?> getBeanClass()
- Specified by:
getBeanClassin interfacejakarta.enterprise.inject.spi.Bean<FooInterceptor>
-
isInvoked
public static boolean isInvoked()
-
reset
public static void reset()
-
getId
public String getId()
- Specified by:
getIdin interfacejakarta.enterprise.inject.spi.PassivationCapable
-
-