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.servicecommon.restcdi.HelidonInterceptor
HelidonInterceptor.Base<W>, HelidonInterceptor.WithPostCompletion<W>
-
Constructor Summary
-
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, wait
Methods inherited from interface io.helidon.servicecommon.restcdi.HelidonInterceptor
aroundConstruction, aroundInvocation, preInvocation, workItems
-
Constructor Details
-
Base
public Base()
-
-
Method Details
-
aroundConstruct
Description copied from interface:HelidonInterceptor
Invoked during the intercepted constructor invocation.Typically, concrete implementations should extend
HelidonInterceptor.Base
which implements this method with@AroundConstruct
. Annotation processing for@AroundConstruct
does not recognize the annotation on adefault
method implementation defined on the interface.- Specified by:
aroundConstruct
in 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:HelidonInterceptor
Invoked during the intercepted method invocation.Typically, concrete implementations should extend
HelidonInterceptor.Base
which implements this method with@AroundInvoke
. Annotation processing for@AroundInvoke
does not recognize the annotation on adefault
method implementation defined on the interface.- Specified by:
aroundInvoke
in 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
-