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 Details

    • isEligible

      boolean isEligible(InterceptionType interceptionType)
      Indicates, whether the given interception type is supported.
      Parameters:
      interceptionType - The InterceptionType
      Returns:
      true if the given interception type is supported, false otherwise
    • getInterceptorInvocation

      InterceptorInvocation getInterceptorInvocation(Object interceptorInstance, InterceptionType interceptionType)
      Creates a InterceptorInvocation object representing invocation of interceptor methods of a given type on a given interceptor instance.
      Parameters:
      interceptorInstance - the given instance of the interceptor
      interceptionType - the given interception type
      Returns: