public class SimpleInterceptorMetadata<T> extends Object implements InterceptorMetadata<T>, Serializable
Constructor and Description |
---|
SimpleInterceptorMetadata(InterceptorReference<T> interceptorReference,
boolean targetClass,
Map<InterceptionType,List<MethodMetadata>> interceptorMethodMap) |
Modifier and Type | Method and Description |
---|---|
ClassMetadata<?> |
getInterceptorClass() |
InterceptorInvocation |
getInterceptorInvocation(Object interceptorInstance,
InterceptorMetadata interceptorReference,
InterceptionType interceptionType) |
List<MethodMetadata> |
getInterceptorMethods(InterceptionType interceptionType) |
InterceptorReference<T> |
getInterceptorReference()
Returns the class for which this interceptor metadata was created
|
boolean |
isEligible(InterceptionType interceptionType)
Returns true if the interceptor corresponding to this
InterceptorMetadata
has interceptor methods for the given interceptionType . |
String |
toString() |
public SimpleInterceptorMetadata(InterceptorReference<T> interceptorReference, boolean targetClass, Map<InterceptionType,List<MethodMetadata>> interceptorMethodMap)
public ClassMetadata<?> getInterceptorClass()
getInterceptorClass
in interface InterceptorMetadata<T>
public InterceptorReference<T> getInterceptorReference()
InterceptorMetadata
getInterceptorReference
in interface InterceptorMetadata<T>
public List<MethodMetadata> getInterceptorMethods(InterceptionType interceptionType)
public boolean isEligible(InterceptionType interceptionType)
InterceptorMetadata
has interceptor methods for the given interceptionType
. Else returns false.isEligible
in interface InterceptorMetadata<T>
interceptionType
- The InterceptionType
public InterceptorInvocation getInterceptorInvocation(Object interceptorInstance, InterceptorMetadata interceptorReference, InterceptionType interceptionType)
getInterceptorInvocation
in interface InterceptorMetadata<T>
Copyright © 2013 Seam Framework. All rights reserved.