Interface HelidonInterceptor.WithPostCompletion<W>
- Type Parameters:
W- type of the work item processed during interception
- All Superinterfaces:
HelidonInterceptor<W>
- Enclosing interface:
HelidonInterceptor<W>
Common behavior among interceptors with both pre-invocation and post-completion behavior.
Implementing classes should extend HelidonInterceptor to inherit the provided behavior.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.microprofile.servicecommon.HelidonInterceptor
HelidonInterceptor.Base<W>, HelidonInterceptor.WithPostCompletion<W> -
Method Summary
Modifier and TypeMethodDescriptiondefault ObjectaroundConstruction(jakarta.interceptor.InvocationContext context) Invokes the implementation'spreInvocationandpostCompletionlogic for a constructor, once for each work item associated with the constructor.default ObjectaroundInvocation(jakarta.interceptor.InvocationContext context) Invokes the implementation'spreInvocationandpostCompletionlogic for a constructor, once for each work item associated with the method.voidpostCompletion(jakarta.interceptor.InvocationContext context, Throwable throwable, W workItem) Performs whatever post-completion work is needed for the given context, applied to the specified work item.Methods inherited from interface io.helidon.microprofile.servicecommon.HelidonInterceptor
aroundConstruct, aroundInvoke, preInvocation, workItems
-
Method Details
-
aroundConstruction
Invokes the implementation'spreInvocationandpostCompletionlogic for a constructor, once for each work item associated with the constructor.- Specified by:
aroundConstructionin interfaceHelidonInterceptor<W>- Parameters:
context-InvocationContext- Returns:
- any value returned by the intercepted
Executable - Throws:
Exception- when the intercepted code throws an exception
-
aroundInvocation
Invokes the implementation'spreInvocationandpostCompletionlogic for a constructor, once for each work item associated with the method.- Specified by:
aroundInvocationin interfaceHelidonInterceptor<W>- Parameters:
context-InvocationContext- Returns:
- any value returned by the intercepted
Executable - Throws:
Exception- when the intercepted code throws an exception
-
postCompletion
Performs whatever post-completion work is needed for the given context, applied to the specified work item.- Parameters:
context-InvocationContextfor the execution being interceptedthrowable- throwable from the intercepted method; null if the method returned normallyworkItem- the work item on which to operate
-