Uses of Class
io.helidon.inject.testing.ReflectionBasedSingletonServiceProvider
Packages that use ReflectionBasedSingletonServiceProvider
-
Uses of ReflectionBasedSingletonServiceProvider in io.helidon.inject.testing
Methods in io.helidon.inject.testing that return ReflectionBasedSingletonServiceProviderModifier and TypeMethodDescriptionstatic <T> ReflectionBasedSingletonServiceProvider
<T> ReflectionBasedSingletonServiceProvider.create
(Class<T> serviceType, io.helidon.inject.api.ServiceInfoBasics siBasics) Generates a service provider eligible for binding into the service registry with the following proviso: The service type will be ofjakarta.inject.Singleton
scope The service type will be created reflectively, and will expect to have an empty constructor The service type will not be able to provide its dependencies, nor will it be able to accept injection The service type will not be able to participate in lifecycle -PostConstructMethod
orPreDestroyMethod
Note: Generally it is encouraged for users to rely on the annotation processors and other built on compile-time tooling to generate the appropriate service providers and modules.