Package io.helidon.servicecommon.restcdi
Interface HelidonInterceptor.WithPostCompletion<W>
-
- Type Parameters:
W- type of the work item processed during interception
- All Superinterfaces:
HelidonInterceptor<W>
- Enclosing interface:
- HelidonInterceptor<W>
public static interface HelidonInterceptor.WithPostCompletion<W> extends HelidonInterceptor<W>
Common behavior among interceptors with both pre-invocation and post-completion behavior.Implementing classes should extend
HelidonInterceptorto inherit the provided behavior.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.helidon.servicecommon.restcdi.HelidonInterceptor
HelidonInterceptor.Base<W>, HelidonInterceptor.WithPostCompletion<W>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ObjectaroundConstruction(javax.interceptor.InvocationContext context)Invokes the implementation'spreInvocationandpostCompletionlogic for a constructor, once for each work item associated with the constructor.default ObjectaroundInvocation(javax.interceptor.InvocationContext context)Invokes the implementation'spreInvocationandpostCompletionlogic for a constructor, once for each work item associated with the method.voidpostCompletion(javax.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.servicecommon.restcdi.HelidonInterceptor
aroundConstruct, aroundInvoke, preInvocation, workItems
-
-
-
-
Method Detail
-
aroundConstruction
default Object aroundConstruction(javax.interceptor.InvocationContext context) throws Exception
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
default Object aroundInvocation(javax.interceptor.InvocationContext context) throws Exception
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
void postCompletion(javax.interceptor.InvocationContext context, Throwable throwable, W workItem)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
-
-