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
public class CustomInterceptorMetadata<T> extends Object implements InterceptorClassMetadata<T>
- Author:
- Marius Bogoevici
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CdiInterceptorFactory<T>
getInterceptorFactory()
Returns an InterceptorFactory capable of creating instances of this interceptor..InterceptorInvocation
getInterceptorInvocation(Object interceptorInstance, InterceptionType interceptionType)
Creates aInterceptorInvocation
object representing invocation of interceptor methods of a given type on a given interceptor instance.Class<T>
getJavaClass()
Returns the class of this interceptor.Serializable
getKey()
boolean
isEligible(InterceptionType interceptionType)
Indicates, whether the given interception type is supported.static <T> CustomInterceptorMetadata<T>
of(jakarta.enterprise.inject.spi.Interceptor<T> interceptor)
String
toString()
-
-
-
Method Detail
-
of
public static <T> CustomInterceptorMetadata<T> of(jakarta.enterprise.inject.spi.Interceptor<T> interceptor)
-
getInterceptorFactory
public CdiInterceptorFactory<T> getInterceptorFactory()
Description copied from interface:InterceptorClassMetadata
Returns an InterceptorFactory capable of creating instances of this interceptor..- Specified by:
getInterceptorFactory
in interfaceInterceptorClassMetadata<T>
- Returns:
- the interceptor factory
-
isEligible
public boolean isEligible(InterceptionType interceptionType)
Description copied from interface:InterceptorMetadata
Indicates, whether the given interception type is supported.- Specified by:
isEligible
in 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:InterceptorMetadata
Creates aInterceptorInvocation
object representing invocation of interceptor methods of a given type on a given interceptor instance.- Specified by:
getInterceptorInvocation
in interfaceInterceptorMetadata
- Parameters:
interceptorInstance
- the given instance of the interceptorinterceptionType
- the given interception type- Returns:
-
getJavaClass
public Class<T> getJavaClass()
Description copied from interface:InterceptorClassMetadata
Returns the class of this interceptor.- Specified by:
getJavaClass
in interfaceInterceptorClassMetadata<T>
- Returns:
-
getKey
public Serializable getKey()
- Specified by:
getKey
in interfaceInterceptorClassMetadata<T>
- Returns:
- a unique key which might be used to identify a metadata instance
-
-