Interface InvocationContext

All Superinterfaces:
Prototype.Api
All Known Implementing Classes:
InvocationContext.BuilderBase.InvocationContextImpl

public interface InvocationContext extends Prototype.Api
Used by Interceptor.
See Also:
  • Method Details

    • builder

      static InvocationContext.Builder builder()
      Create a new fluent API builder to customize configuration.
      Returns:
      a new builder
    • builder

      static InvocationContext.Builder builder(InvocationContext instance)
      Create a new fluent API builder from an existing instance.
      Parameters:
      instance - an existing instance used as a base for the builder
      Returns:
      a builder based on an instance
    • create

      static InvocationContext create()
      Create a new instance with default values.
      Returns:
      a new instance
    • 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<Annotation> classAnnotations()
      The annotations on the enclosing type.
      Returns:
      the annotations on the enclosing type
    • elementInfo

      TypedElementInfo 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

      List<TypedElementInfo> 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