Interface InvocationContext


public interface InvocationContext
Used by Interceptor.
  • Method Details

    • serviceProvider

      ServiceProvider<?> serviceProvider()
      The service provider being intercepted.
      Returns:
      the service provider being intercepted
    • serviceTypeName

      TypeName serviceTypeName()
      The service type name for the root service provider.
      Returns:
      the service type name for the root service provider
    • classAnnotations

      List<AnnotationAndValue> classAnnotations()
      The annotations on the enclosing type.
      Returns:
      the annotations on the enclosing type
    • elementInfo

      TypedElementName elementInfo()
      The element info represents the method (or the constructor) being invoked.
      Returns:
      the element info represents the method (or the constructor) being invoked
    • elementArgInfo

      Optional<TypedElementName[]> elementArgInfo()
      The method/element argument info.
      Returns:
      the method/element argument info
    • interceptors

      List<Provider<Interceptor>> interceptors()
      The interceptor chain.
      Returns:
      the interceptor chain
    • contextData

      Map<String,Object> contextData()
      The contextual info that can be shared between interceptors.
      Returns:
      the read/write contextual data that is passed between each chained interceptor