Module io.helidon.service.registry
Package io.helidon.service.registry
Interface Interception.Interceptor
- Enclosing class:
Interception
Implementors of this contract must be
Service.Named
according to the Interception.Intercepted
annotation they support.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
Represents the next in line for interception, terminating with a call to the service instance. -
Method Summary
Modifier and TypeMethodDescription<V> V
proceed
(InterceptionContext ctx, Interception.Interceptor.Chain<V> chain, Object... args) Called during interception of the target V.
-
Method Details
-
proceed
<V> V proceed(InterceptionContext ctx, Interception.Interceptor.Chain<V> chain, Object... args) throws Exception Called during interception of the target V. The implementation typically should finish with the call toInterception.Interceptor.Chain.proceed(java.lang.Object[])
.- Type Parameters:
V
- the return value type (orVoid
for void method elements)- Parameters:
ctx
- the invocation contextchain
- the chain to call proceed onargs
- the arguments to the call- Returns:
- the return value to the caller
- Throws:
Exception
- if there are any checked exceptions thrown by the underlying method, or any runtime exception thrown
-