Class AnimalInterceptor
- java.lang.Object
-
- org.jboss.cdi.tck.interceptors.tests.contract.lifecycleCallback.AnimalInterceptor
-
@Interceptor @Priority(1) public class AnimalInterceptor extends Object
-
-
Constructor Summary
Constructors Constructor Description AnimalInterceptor()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectintercept(jakarta.interceptor.InvocationContext ctx)static booleanisPostConstructInterceptorCalled(String animalType)static booleanisPreDestroyInterceptorCalled(String animalType)voidpostConstruct(jakarta.interceptor.InvocationContext ctx)voidpreDestroy(jakarta.interceptor.InvocationContext ctx)
-
-
-
Method Detail
-
postConstruct
@PostConstruct public void postConstruct(jakarta.interceptor.InvocationContext ctx)
-
intercept
public Object intercept(jakarta.interceptor.InvocationContext ctx) throws Exception
- Throws:
Exception
-
preDestroy
@PreDestroy public void preDestroy(jakarta.interceptor.InvocationContext ctx)
-
isPostConstructInterceptorCalled
public static boolean isPostConstructInterceptorCalled(String animalType)
-
isPreDestroyInterceptorCalled
public static boolean isPreDestroyInterceptorCalled(String animalType)
-
-