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..InterceptorInvocationgetInterceptorInvocation(Object interceptorInstance, InterceptionType interceptionType)Creates aInterceptorInvocationobject representing invocation of interceptor methods of a given type on a given interceptor instance.Class<T>getJavaClass()Returns the class of this interceptor.SerializablegetKey()booleanisEligible(InterceptionType interceptionType)Indicates, whether the given interception type is supported.static <T> CustomInterceptorMetadata<T>of(Interceptor<T> interceptor)StringtoString()
-
-
-
Method Detail
-
of
public static <T> CustomInterceptorMetadata<T> of(Interceptor<T> interceptor)
-
getInterceptorFactory
public CdiInterceptorFactory<T> 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
public boolean isEligible(InterceptionType interceptionType)
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:
-
getJavaClass
public Class<T> getJavaClass()
Description copied from interface:InterceptorClassMetadataReturns the class of this interceptor.- Specified by:
getJavaClassin interfaceInterceptorClassMetadata<T>- Returns:
-
getKey
public Serializable getKey()
- Specified by:
getKeyin interfaceInterceptorClassMetadata<T>- Returns:
- a unique key which might be used to identify a metadata instance
-
-