java.lang.Object
io.helidon.pico.runtime.DefaultPicoServicesProvider
- All Implemented Interfaces:
Resettable,PicoServicesProvider
@Singleton
public class DefaultPicoServicesProvider
extends Object
implements PicoServicesProvider, Resettable
The default implementation for
PicoServicesProvider.
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
-
DefaultPicoServicesProvider
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:PicoServicesProviderProvide thePicoServices implementation given the provided primordialBootstrapconfiguration instance.- Specified by:
servicesin interfacePicoServicesProvider- Parameters:
bootstrap- the primordial bootstrap configuration- Returns:
- pico services instance configured with the provided bootstrap instance
-
reset
public boolean reset(boolean deep) Description copied from interface:ResettableResets the state of this object.- Specified by:
resetin 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
-