Class ServiceConfigurationProvider
- java.lang.Object
-
- io.helidon.service.configuration.api.ServiceConfigurationProvider
-
- Direct Known Subclasses:
HikariCPServiceConfigurationProvider,UCPServiceConfigurationProvider
@Deprecated public abstract class ServiceConfigurationProvider extends Object
Deprecated.This class is slated for removal.An abstract factory ofServiceConfigurationinstances.- See Also:
buildFor(Set, Properties),ServiceConfiguration
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedServiceConfigurationProvider(String serviceIdentifier)Deprecated.Creates a newServiceConfigurationProvider.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description abstract ServiceConfigurationbuildFor(Set<? extends System> systems, Properties coordinates)Deprecated.Given aSetofSystems and an optionalPropertiesobject representing coordinates identifying a configuration space in which configuration discovery is to take place, returns a newServiceConfigurationappropriate for the configuration space implied by the supplied parameters, ornullif no suchServiceConfigurationis applicable.protected static SystemgetAuthoritativeSystem(Set<? extends System> systems, Properties coordinates)Deprecated.Given aSetofSystems, returns theSystemfrom thatSetthat is deemed to be the authoritative system, either because it is the only enabled member of theSetor it is the first enabled member of theSetwhoseSystem.isAuthoritative()method returnstrue, ornullif there is no authoritativeSystemto be returned.StringgetServiceIdentifier()Deprecated.Returns the identifier of the logical service thisServiceConfigurationProviderimplementation providesServiceConfigurationinstances for.
-
-
-
Constructor Detail
-
ServiceConfigurationProvider
protected ServiceConfigurationProvider(String serviceIdentifier)
Deprecated.Creates a newServiceConfigurationProvider.- Parameters:
serviceIdentifier- the identifier of the service thisServiceConfigurationProviderimplementation will provide configuration for; must not benull- Throws:
NullPointerException- ifserviceIdentifierisnull- See Also:
getServiceIdentifier()
-
-
Method Detail
-
getServiceIdentifier
public final String getServiceIdentifier()
Deprecated.Returns the identifier of the logical service thisServiceConfigurationProviderimplementation providesServiceConfigurationinstances for.This method never returns
null.Repeated invocations of this method will yield identical return values.
- Returns:
- the identifier of the logical service this
ServiceConfigurationProviderimplementation providesServiceConfigurationinstances for; nevernull - See Also:
ServiceConfigurationProvider(String)
-
buildFor
public abstract ServiceConfiguration buildFor(Set<? extends System> systems, Properties coordinates)
Deprecated.Given aSetofSystems and an optionalPropertiesobject representing coordinates identifying a configuration space in which configuration discovery is to take place, returns a newServiceConfigurationappropriate for the configuration space implied by the supplied parameters, ornullif no suchServiceConfigurationis applicable.Implementations of this method may—and often will—return
null.Multiple invocations of an implementation of this method must result in distinct, though perhaps equal,
ServiceConfigurationinstances.Implementations of this method may rely on the fact that all members of the supplied
SetofSystems will be enabled.Implementations of this method must not call the
ServiceConfiguration.getInstance(String, Properties)method, as an infinite loop may result.- Parameters:
systems- aSetofSystems found to be in effect; may benullcoordinates- aPropertiesobject containing hints that may help in the implementation of theServiceConfigurationto be returned; may benull- Returns:
- a
ServiceConfigurationsuitable for the configuration space implied by the supplied parameters, ornullif no suchServiceConfigurationis applicable - See Also:
ServiceConfiguration.getInstance(String, Properties)
-
getAuthoritativeSystem
protected static final System getAuthoritativeSystem(Set<? extends System> systems, Properties coordinates)
Deprecated.Given aSetofSystems, returns theSystemfrom thatSetthat is deemed to be the authoritative system, either because it is the only enabled member of theSetor it is the first enabled member of theSetwhoseSystem.isAuthoritative()method returnstrue, ornullif there is no authoritativeSystemto be returned.This method may—and often does—return
null.A
Systemis deemed to be the authoritative system if it is enabled and either of the following is true:- It is the sole member of the supplied
SetofSystems. - It describes itself as being authoritative.
- Parameters:
systems- theSystems to inspect; may benullcoordinates- aPropertiesobject containing hints that may help in the implementation of thisServiceConfigurationProvidernot currently used but reserved for future use; may benull.- Returns:
- a
Systemthat is deemed to be authoritative, ornullif no suchSystemcould be found
- It is the sole member of the supplied
-
-