Module io.helidon.service.registry
Package io.helidon.service.registry
Interface InterceptionMetadata
Provides a service descriptor, or an intercepted instance with information
whether to, and how to intercept elements.
Used (mostly) by generated code (passed as a parameter to
ServiceDescriptor.inject(io.helidon.service.registry.DependencyContext, InterceptionMetadata, java.util.Set, Object)
, and
ServiceDescriptor.instantiate(io.helidon.service.registry.DependencyContext, InterceptionMetadata)
).
-
Method Summary
Modifier and TypeMethodDescription<T> InterceptionInvoker
<T> createInvoker
(ServiceInfo descriptor, Set<Qualifier> typeQualifiers, List<Annotation> typeAnnotations, TypedElementInfo element, InterceptionInvoker<T> targetInvoker, Set<Class<? extends Throwable>> checkedExceptions) Create an invoker that handles interception if needed, for constructors.<T> InterceptionInvoker
<T> createInvoker
(Object serviceInstance, ServiceInfo descriptor, Set<Qualifier> typeQualifiers, List<Annotation> typeAnnotations, TypedElementInfo element, InterceptionInvoker<T> targetInvoker, Set<Class<? extends Throwable>> checkedExceptions) Create an invoker that handles interception if needed.
-
Method Details
-
createInvoker
<T> InterceptionInvoker<T> createInvoker(ServiceInfo descriptor, Set<Qualifier> typeQualifiers, List<Annotation> typeAnnotations, TypedElementInfo element, InterceptionInvoker<T> targetInvoker, Set<Class<? extends Throwable>> checkedExceptions) Create an invoker that handles interception if needed, for constructors.- Type Parameters:
T
- type of the result of the invoker- Parameters:
descriptor
- metadata of the service being interceptedtypeQualifiers
- qualifiers on the typetypeAnnotations
- annotations on the typeelement
- element being interceptedtargetInvoker
- invoker of the elementcheckedExceptions
- expected checked exceptions that can be thrown by the invoker- Returns:
- an invoker that handles interception if enabled and if there are matching interceptors, any checkedException will be re-thrown, any runtime exception will be re-thrown
-
createInvoker
<T> InterceptionInvoker<T> createInvoker(Object serviceInstance, ServiceInfo descriptor, Set<Qualifier> typeQualifiers, List<Annotation> typeAnnotations, TypedElementInfo element, InterceptionInvoker<T> targetInvoker, Set<Class<? extends Throwable>> checkedExceptions) Create an invoker that handles interception if needed.- Type Parameters:
T
- type of the result of the invoker- Parameters:
serviceInstance
- instance of the service that is being intercepteddescriptor
- metadata of the service being interceptedtypeQualifiers
- qualifiers on the typetypeAnnotations
- annotations on the typeelement
- element being interceptedtargetInvoker
- invoker of the elementcheckedExceptions
- expected checked exceptions that can be thrown by the invoker- Returns:
- an invoker that handles interception if enabled and if there are matching interceptors, any checkedException will be re-thrown, any runtime exception will be re-thrown
-