java.lang.Object
io.helidon.inject.runtime.InterceptedMethod<I,V>
- Type Parameters:
I
- the intercepted typeV
- the intercepted method return type
Base class, used in
Interceptor
generated code. One of these instances will be created for each
intercepted method.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
InterceptedMethod
(I interceptedImpl, ServiceProvider<?> serviceProvider, TypeName serviceTypeName, List<Annotation> serviceLevelAnnotations, List<Provider<Interceptor>> interceptors, TypedElementInfo methodInfo) The constructor.protected
InterceptedMethod
(I interceptedImpl, ServiceProvider<?> serviceProvider, TypeName serviceTypeName, List<Annotation> serviceLevelAnnotations, List<Provider<Interceptor>> interceptors, TypedElementInfo methodInfo, List<TypedElementInfo> methodArgInfo) The constructor. -
Method Summary
-
Constructor Details
-
InterceptedMethod
protected InterceptedMethod(I interceptedImpl, ServiceProvider<?> serviceProvider, TypeName serviceTypeName, List<Annotation> serviceLevelAnnotations, List<Provider<Interceptor>> interceptors, TypedElementInfo methodInfo, List<TypedElementInfo> methodArgInfo) The constructor.- Parameters:
interceptedImpl
- the intercepted instanceserviceProvider
- the service provider for the intercepted typeserviceTypeName
- the service type nameserviceLevelAnnotations
- the service level annotationsinterceptors
- the interceptors for the methodmethodInfo
- the method element infomethodArgInfo
- the method args element info
-
InterceptedMethod
protected InterceptedMethod(I interceptedImpl, ServiceProvider<?> serviceProvider, TypeName serviceTypeName, List<Annotation> serviceLevelAnnotations, List<Provider<Interceptor>> interceptors, TypedElementInfo methodInfo) The constructor.- Parameters:
interceptedImpl
- the intercepted instanceserviceProvider
- the service provider for the intercepted typeserviceTypeName
- the service type nameserviceLevelAnnotations
- the service level annotationsinterceptors
- the interceptors for the methodmethodInfo
- the method element info
-
-
Method Details
-
impl
The intercepted instance.- Returns:
- the intercepted instance
-
ctx
public io.helidon.inject.api.InvocationContext ctx()The intercepted invocation context.- Returns:
- the intercepted invocation context
-
invoke
Make the invocation to an interceptor method.- Parameters:
args
- arguments- Returns:
- the result of the call to the intercepted method
- Throws:
Throwable
- if there is any throwables encountered as part of the invocation
-
apply
-