Class HelidonInterceptor.Base<W>
- Type Parameters:
W- type of work items processed by the interceptor implementation
- All Implemented Interfaces:
HelidonInterceptor<W>
- Enclosing interface:
HelidonInterceptor<W>
HelidonInterceptor implementation providing as much logic as possible.
The two methods implemented here cannot be default methods on the interface because annotation processing
for @AroundConstruct and @AroundInvoke does not recognize their placement on default interface
methods.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.microprofile.servicecommon.HelidonInterceptor
HelidonInterceptor.Base<W>, HelidonInterceptor.WithPostCompletion<W> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaroundConstruct(jakarta.interceptor.InvocationContext context) Invoked during the intercepted constructor invocation.aroundInvoke(jakarta.interceptor.InvocationContext context) Invoked during the intercepted method invocation.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.helidon.microprofile.servicecommon.HelidonInterceptor
aroundConstruction, aroundInvocation, preInvocation, workItems
-
Constructor Details
-
Base
public Base()
-
-
Method Details
-
aroundConstruct
Description copied from interface:HelidonInterceptorInvoked during the intercepted constructor invocation.Typically, concrete implementations should extend
HelidonInterceptor.Basewhich implements this method with@AroundConstruct. Annotation processing for@AroundConstructdoes not recognize the annotation on adefaultmethod implementation defined on the interface.- Specified by:
aroundConstructin interfaceHelidonInterceptor<W>- Parameters:
context- the invocation context for the intercepted call- Returns:
- the value returned from the intercepted constructor
- Throws:
Exception- if the invoked constructor throws an exception
-
aroundInvoke
Description copied from interface:HelidonInterceptorInvoked during the intercepted method invocation.Typically, concrete implementations should extend
HelidonInterceptor.Basewhich implements this method with@AroundInvoke. Annotation processing for@AroundInvokedoes not recognize the annotation on adefaultmethod implementation defined on the interface.- Specified by:
aroundInvokein interfaceHelidonInterceptor<W>- Parameters:
context- the invocation context for the intercepted call- Returns:
- the value returned from the intercepted method
- Throws:
Exception- if the invoked method throws an exception
-