Interface InvocationContext<T,R>

Type Parameters:
T - The declaring type
R - The result of the method call
All Superinterfaces:
AnnotationMetadata, AnnotationMetadataDelegate, AnnotationMetadataProvider, AnnotationSource, AttributeHolder, Executable<T,R>, MutableAttributeHolder
All Known Subinterfaces:
ConstructorInvocationContext<T>, MethodInvocationContext<T,R>
All Known Implementing Classes:
ConstructorInterceptorChain, InterceptorChain, MethodInterceptorChain

public interface InvocationContext<T,R> extends Executable<T,R>, AnnotationMetadataDelegate, MutableAttributeHolder

An InvocationContext passed to one or many Interceptor instances. Attributes can be stored within the context and shared between multiple Interceptor implementations. The proceed() method should be called to proceed to the next Interceptor with the last interceptor in the chain being the original decorated method implementation.

The parameters to pass to the next Interceptor can be mutated using MutableArgumentValue interface returned by the getParameters() method

Since:
1.0
Author:
Graeme Rocher