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
All Methods Instance Methods Abstract 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.boolean
isEligible(InterceptionType interceptionType)
Indicates, whether the given interception type is supported.
-
-
-
Method Detail
-
isEligible
boolean isEligible(InterceptionType interceptionType)
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 aInterceptorInvocation
object 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:
-
-