public class CustomInterceptorMetadata<T> extends java.lang.Object implements InterceptorClassMetadata<T>
| Modifier and Type | Method and Description |
|---|---|
CdiInterceptorFactory<T> |
getInterceptorFactory()
Returns an InterceptorFactory capable of creating instances of this interceptor..
|
InterceptorInvocation |
getInterceptorInvocation(java.lang.Object interceptorInstance,
InterceptionType interceptionType)
Creates a
InterceptorInvocation object representing invocation of interceptor methods of a given type on a given interceptor instance. |
java.lang.Class<T> |
getJavaClass()
Returns the class of this interceptor.
|
boolean |
isEligible(InterceptionType interceptionType)
Indicates, whether the given interception type is supported.
|
static <T> CustomInterceptorMetadata<T> |
of(Interceptor<T> interceptor) |
java.lang.String |
toString() |
public static <T> CustomInterceptorMetadata<T> of(Interceptor<T> interceptor)
public CdiInterceptorFactory<T> getInterceptorFactory()
InterceptorClassMetadatagetInterceptorFactory in interface InterceptorClassMetadata<T>public boolean isEligible(InterceptionType interceptionType)
InterceptorMetadataisEligible in interface InterceptorMetadatainterceptionType - The InterceptionTypepublic InterceptorInvocation getInterceptorInvocation(java.lang.Object interceptorInstance, InterceptionType interceptionType)
InterceptorMetadataInterceptorInvocation object representing invocation of interceptor methods of a given type on a given interceptor instance.getInterceptorInvocation in interface InterceptorMetadatainterceptorInstance - the given instance of the interceptorinterceptionType - the given interception typepublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Class<T> getJavaClass()
InterceptorClassMetadatagetJavaClass in interface InterceptorClassMetadata<T>Copyright © 2015. All Rights Reserved.