Class AbstractInterceptorMetadata
- java.lang.Object
-
- org.jboss.weld.interceptor.reader.AbstractInterceptorMetadata
-
- All Implemented Interfaces:
InterceptorMetadata
- Direct Known Subclasses:
InterceptorMetadataImpl
,TargetClassInterceptorMetadata
public abstract class AbstractInterceptorMetadata extends Object implements InterceptorMetadata
- Author:
- Marius Bogoevici, Jozef Hartinger
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<InterceptionType,List<Method>>
interceptorMethodMap
-
Constructor Summary
Constructors Constructor Description AbstractInterceptorMetadata(Map<InterceptionType,List<Method>> interceptorMethodMap)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description InterceptorInvocation
getInterceptorInvocation(Object interceptorInstance, InterceptionType interceptionType)
Creates aInterceptorInvocation
object representing invocation of interceptor methods of a given type on a given interceptor instance.List<Method>
getInterceptorMethods(InterceptionType interceptionType)
boolean
isEligible(InterceptionType interceptionType)
Indicates, whether the given interception type is supported.protected abstract boolean
isTargetClassInterceptor()
-
-
-
Field Detail
-
interceptorMethodMap
protected final Map<InterceptionType,List<Method>> interceptorMethodMap
-
-
Constructor Detail
-
AbstractInterceptorMetadata
public AbstractInterceptorMetadata(Map<InterceptionType,List<Method>> interceptorMethodMap)
-
-
Method Detail
-
getInterceptorMethods
public List<Method> getInterceptorMethods(InterceptionType interceptionType)
-
isEligible
public boolean isEligible(InterceptionType interceptionType)
Description copied from interface:InterceptorMetadata
Indicates, whether the given interception type is supported.- Specified by:
isEligible
in 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:InterceptorMetadata
Creates aInterceptorInvocation
object representing invocation of interceptor methods of a given type on a given interceptor instance.- Specified by:
getInterceptorInvocation
in interfaceInterceptorMetadata
- Parameters:
interceptorInstance
- the given instance of the interceptorinterceptionType
- the given interception type- Returns:
-
isTargetClassInterceptor
protected abstract boolean isTargetClassInterceptor()
-
-