Interface InterceptionContext
- All Superinterfaces:
Prototype.Api
- All Known Implementing Classes:
InterceptionContext.BuilderBase.InterceptionContextImpl
Invocation context provides metadata about the invoked element to an interceptor.
Used by
Interception.Interceptor.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forInterceptionContext.static classInterceptionContext.BuilderBase<BUILDER extends InterceptionContext.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends InterceptionContext>Fluent API builder base forInterceptionContext. -
Method Summary
Modifier and TypeMethodDescriptionstatic InterceptionContext.Builderbuilder()Create a new fluent API builder to customize configuration.static InterceptionContext.Builderbuilder(InterceptionContext instance) Create a new fluent API builder from an existing instance.The element info represents the method, field, or the constructor being invoked.The service being intercepted.The service instance being intercepted.Annotations on the enclosing type.
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
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
-
serviceInstance
-
serviceInfo
-
typeAnnotations
List<Annotation> typeAnnotations()Annotations on the enclosing type.- Returns:
- the annotations on the enclosing type
-
elementInfo
TypedElementInfo elementInfo()The element info represents the method, field, or the constructor being invoked.- Returns:
- the element info of element being intercepted
-