Interface InterceptorMetadata
- All Known Subinterfaces:
InterceptorClassMetadata<T>
- All Known Implementing Classes:
AbstractInterceptorMetadata,CustomInterceptorMetadata,InterceptorMetadataImpl,TargetClassInterceptorMetadata
public interface InterceptorMetadata
Metadata about a type that may have interceptor methods. This may either be an interceptor class or a component's target
class.
- Author:
- Jozef Hartinger
-
Method Summary
Modifier and TypeMethodDescriptiongetInterceptorInvocation(Object interceptorInstance, InterceptionType interceptionType) Creates aInterceptorInvocationobject representing invocation of interceptor methods of a given type on a given interceptor instance.booleanisEligible(InterceptionType interceptionType) Indicates, whether the given interception type is supported.
-
Method Details
-
isEligible
Indicates, whether the given interception type is supported.- Parameters:
interceptionType- TheInterceptionType- Returns:
- true if the given interception type is supported, false otherwise
-
getInterceptorInvocation
InterceptorInvocation getInterceptorInvocation(Object interceptorInstance, InterceptionType interceptionType) Creates aInterceptorInvocationobject representing invocation of interceptor methods of a given type on a given interceptor instance.- Parameters:
interceptorInstance- the given instance of the interceptorinterceptionType- the given interception type- Returns:
-