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 InterceptorInvocationgetInterceptorInvocation(Object interceptorInstance, InterceptionType interceptionType)Creates aInterceptorInvocationobject representing invocation of interceptor methods of a given type on a given interceptor instance.List<Method>getInterceptorMethods(InterceptionType interceptionType)booleanisEligible(InterceptionType interceptionType)Indicates, whether the given interception type is supported.protected abstract booleanisTargetClassInterceptor()
-
-
-
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:InterceptorMetadataIndicates, whether the given interception type is supported.- Specified by:
isEligiblein 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:InterceptorMetadataCreates aInterceptorInvocationobject representing invocation of interceptor methods of a given type on a given interceptor instance.- Specified by:
getInterceptorInvocationin interfaceInterceptorMetadata- Parameters:
interceptorInstance- the given instance of the interceptorinterceptionType- the given interception type- Returns:
-
isTargetClassInterceptor
protected abstract boolean isTargetClassInterceptor()
-
-