Module io.helidon.service.registry
Package io.helidon.service.registry
Class GeneratedService.ServicesFactoryInterceptionWrapper<T>
java.lang.Object
io.helidon.service.registry.GeneratedService.ServicesFactoryInterceptionWrapper<T>
- Type Parameters:
T
- type of the provided contract
- All Implemented Interfaces:
Service.ServicesFactory<T>
- Enclosing class:
GeneratedService
public abstract static class GeneratedService.ServicesFactoryInterceptionWrapper<T>
extends Object
implements Service.ServicesFactory<T>
Wrapper for generated Service factories that implement a
Service.ServicesFactory
.-
Field Summary
Fields inherited from interface io.helidon.service.registry.Service.ServicesFactory
TYPE
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Creates a new instance delegating service instantiation to the provided services factory. -
Method Summary
Modifier and TypeMethodDescriptionservices()
List of service instances.protected abstract T
Wrap the instance for interception.protected Service.QualifiedInstance
<T> wrapQualifiedInstance
(Service.QualifiedInstance<T> qualifiedInstance) Wrap a qualified instance so the actual instance is correctly intercepted.
-
Constructor Details
-
ServicesFactoryInterceptionWrapper
Creates a new instance delegating service instantiation to the provided services factory.- Parameters:
delegate
- used to obtain service instances that will bewrapped
for interception
-
-
Method Details
-
services
Description copied from interface:Service.ServicesFactory
List of service instances. Each instance may have a different set of qualifiers.The following is inherited from this factory:
- Set of contracts, except for
Service.ServicesFactory
- Scope
- Run level
- Weight
- Specified by:
services
in interfaceService.ServicesFactory<T>
- Returns:
- qualified suppliers of service instances
- Set of contracts, except for
-
wrapQualifiedInstance
protected Service.QualifiedInstance<T> wrapQualifiedInstance(Service.QualifiedInstance<T> qualifiedInstance) Wrap a qualified instance so the actual instance is correctly intercepted.- Parameters:
qualifiedInstance
- qualified instance created by appropriate factory- Returns:
- qualified instance with wrapped instance
-
wrap
Wrap the instance for interception. This method is code generated.- Parameters:
originalInstance
- instance to wrap- Returns:
- wrapped instance
-