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() |
List<MethodMetadata> |
getInterceptorMethods(InterceptionType interceptionType)
Returns the list of interceptor methods of this class for a given
interception type.
|
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 . |
boolean |
isTargetClass() |
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 boolean isTargetClass()
isTargetClass
in interface InterceptorMetadata<T>
public List<MethodMetadata> getInterceptorMethods(InterceptionType interceptionType)
InterceptorMetadata
getInterceptorMethods
in interface InterceptorMetadata<T>
public boolean isEligible(InterceptionType interceptionType)
InterceptorMetadata
has interceptor methods for the given interceptionType
. Else returns false.isEligible
in interface InterceptorMetadata<T>
interceptionType
- The InterceptionType
Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.