Module io.helidon.inject.runtime
Package io.helidon.inject.runtime
Class DefaultInjectionServicesProvider
java.lang.Object
io.helidon.inject.runtime.DefaultInjectionServicesProvider
- All Implemented Interfaces:
Resettable
,InjectionServicesProvider
@Singleton
public class DefaultInjectionServicesProvider
extends Object
implements InjectionServicesProvider, Resettable
The default implementation for
InjectionServicesProvider
.
The first instance created (or first after calling deep reset(boolean)
) will be the global services instance. The global
instance will track the set of loaded modules and applications that are loaded by this JVM.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.this is a Java ServiceLoader implementation and the constructor should not be used directly -
Method Summary
-
Constructor Details
-
DefaultInjectionServicesProvider
Deprecated.this is a Java ServiceLoader implementation and the constructor should not be used directlyService loader based constructor.
-
-
Method Details
-
services
Description copied from interface:InjectionServicesProvider
Provide theInjection
Services implementation given the provided primordialBootstrap
configuration instance.- Specified by:
services
in interfaceInjectionServicesProvider
- Parameters:
bootstrap
- the primordial bootstrap configuration- Returns:
- services instance configured with the provided bootstrap instance
-
reset
public boolean reset(boolean deep) Description copied from interface:Resettable
Resets the state of this object.- Specified by:
reset
in interfaceResettable
- Parameters:
deep
- true to iterate over any contained objects, to reflect the reset into the retained object- Returns:
- returns true if the state was changed
-