public interface InvocationContext
Used by
Interceptor.-
Method Summary
Modifier and TypeMethodDescriptionThe annotations on the enclosing type.The contextual info that can be shared between interceptors.The method/element argument info.The element info represents the method (or the constructor) being invoked.The interceptor chain.The service provider being intercepted.The service type name for the root service provider.
-
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
The contextual info that can be shared between interceptors.- Returns:
- the read/write contextual data that is passed between each chained interceptor
-