public class CustomInterceptorMetadata<T> extends Object implements InterceptorMetadata<T>
Constructor and Description |
---|
CustomInterceptorMetadata(CdiInterceptorFactory<T> factory,
ClassMetadata<?> classMetadata) |
Modifier and Type | Method and Description |
---|---|
ClassMetadata<?> |
getInterceptorClass() |
CdiInterceptorFactory<T> |
getInterceptorFactory()
Returns the class for which this interceptor metadata was created
|
InterceptorInvocation |
getInterceptorInvocation(Object interceptorInstance,
InterceptionType interceptionType) |
boolean |
isEligible(InterceptionType interceptionType)
Returns true if the interceptor corresponding to this
InterceptorMetadata
has interceptor methods for the given interceptionType . |
String |
toString() |
public CustomInterceptorMetadata(CdiInterceptorFactory<T> factory, ClassMetadata<?> classMetadata)
public CdiInterceptorFactory<T> getInterceptorFactory()
InterceptorMetadata
getInterceptorFactory
in interface InterceptorMetadata<T>
public ClassMetadata<?> getInterceptorClass()
getInterceptorClass
in interface InterceptorMetadata<T>
public boolean isEligible(InterceptionType interceptionType)
InterceptorMetadata
InterceptorMetadata
has interceptor methods for the given interceptionType
. Else returns false.isEligible
in interface InterceptorMetadata<T>
interceptionType
- The InterceptionType
public InterceptorInvocation getInterceptorInvocation(Object interceptorInstance, InterceptionType interceptionType)
getInterceptorInvocation
in interface InterceptorMetadata<T>
Copyright © 2013 Seam Framework. All Rights Reserved.