Class HelidonInterceptor.Base<W>
- java.lang.Object
-
- io.helidon.servicecommon.restcdi.HelidonInterceptor.Base<W>
-
- Type Parameters:
W
- type of work items processed by the interceptor implementation
- All Implemented Interfaces:
HelidonInterceptor<W>
- Enclosing interface:
- HelidonInterceptor<W>
@Dependent public abstract static class HelidonInterceptor.Base<W> extends Object implements 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 ondefault
interface methods.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.helidon.servicecommon.restcdi.HelidonInterceptor
HelidonInterceptor.Base<W>, HelidonInterceptor.WithPostCompletion<W>
-
-
Constructor Summary
Constructors Constructor Description Base()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
aroundConstruct(javax.interceptor.InvocationContext context)
Invoked during the intercepted constructor invocation.Object
aroundInvoke(javax.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
-
-
-
-
Method Detail
-
aroundConstruct
public Object aroundConstruct(javax.interceptor.InvocationContext context) throws Exception
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
public Object aroundInvoke(javax.interceptor.InvocationContext context) throws Exception
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
-
-