Package org.jboss.weld.bean.interceptor
Class CustomInterceptorMetadata<T>
java.lang.Object
org.jboss.weld.bean.interceptor.CustomInterceptorMetadata<T>
- All Implemented Interfaces:
InterceptorClassMetadata<T>,InterceptorMetadata
- Author:
- Marius Bogoevici
-
Method Summary
Modifier and TypeMethodDescriptionReturns an InterceptorFactory capable of creating instances of this interceptor..getInterceptorInvocation(Object interceptorInstance, InterceptionType interceptionType) Creates aInterceptorInvocationobject representing invocation of interceptor methods of a given type on a given interceptor instance.Returns the class of this interceptor.getKey()booleanisEligible(InterceptionType interceptionType) Indicates, whether the given interception type is supported.static <T> CustomInterceptorMetadata<T>of(jakarta.enterprise.inject.spi.Interceptor<T> interceptor) toString()
-
Method Details
-
of
public static <T> CustomInterceptorMetadata<T> of(jakarta.enterprise.inject.spi.Interceptor<T> interceptor) -
getInterceptorFactory
Description copied from interface:InterceptorClassMetadataReturns an InterceptorFactory capable of creating instances of this interceptor..- Specified by:
getInterceptorFactoryin interfaceInterceptorClassMetadata<T>- Returns:
- the interceptor factory
-
isEligible
Description copied from interface:InterceptorMetadataIndicates, whether the given interception type is supported.- Specified by:
isEligiblein interfaceInterceptorMetadata- Parameters:
interceptionType- TheInterceptionType- Returns:
- true if the given interception type is supported, false otherwise
-
getInterceptorInvocation
public InterceptorInvocation getInterceptorInvocation(Object interceptorInstance, InterceptionType interceptionType) Description copied from interface:InterceptorMetadataCreates aInterceptorInvocationobject representing invocation of interceptor methods of a given type on a given interceptor instance.- Specified by:
getInterceptorInvocationin interfaceInterceptorMetadata- Parameters:
interceptorInstance- the given instance of the interceptorinterceptionType- the given interception type- Returns:
-
toString
-
getJavaClass
Description copied from interface:InterceptorClassMetadataReturns the class of this interceptor.- Specified by:
getJavaClassin interfaceInterceptorClassMetadata<T>- Returns:
-
getKey
- Specified by:
getKeyin interfaceInterceptorClassMetadata<T>- Returns:
- a unique key which might be used to identify a metadata instance
-