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 ofServiceConfiguration
instances.- See Also:
buildFor(Set, Properties)
,ServiceConfiguration
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ServiceConfigurationProvider(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 ServiceConfiguration
buildFor(Set<? extends System> systems, Properties coordinates)
Deprecated.Given aSet
ofSystem
s and an optionalProperties
object representing coordinates identifying a configuration space in which configuration discovery is to take place, returns a newServiceConfiguration
appropriate for the configuration space implied by the supplied parameters, ornull
if no suchServiceConfiguration
is applicable.protected static System
getAuthoritativeSystem(Set<? extends System> systems, Properties coordinates)
Deprecated.Given aSet
ofSystem
s, returns theSystem
from thatSet
that is deemed to be the authoritative system, either because it is the only enabled member of theSet
or it is the first enabled member of theSet
whoseSystem.isAuthoritative()
method returnstrue
, ornull
if there is no authoritativeSystem
to be returned.String
getServiceIdentifier()
Deprecated.Returns the identifier of the logical service thisServiceConfigurationProvider
implementation providesServiceConfiguration
instances for.
-
-
-
Constructor Detail
-
ServiceConfigurationProvider
protected ServiceConfigurationProvider(String serviceIdentifier)
Deprecated.Creates a newServiceConfigurationProvider
.- Parameters:
serviceIdentifier
- the identifier of the service thisServiceConfigurationProvider
implementation will provide configuration for; must not benull
- Throws:
NullPointerException
- ifserviceIdentifier
isnull
- See Also:
getServiceIdentifier()
-
-
Method Detail
-
getServiceIdentifier
public final String getServiceIdentifier()
Deprecated.Returns the identifier of the logical service thisServiceConfigurationProvider
implementation providesServiceConfiguration
instances for.This method never returns
null
.Repeated invocations of this method will yield identical return values.
- Returns:
- the identifier of the logical service this
ServiceConfigurationProvider
implementation providesServiceConfiguration
instances for; nevernull
- See Also:
ServiceConfigurationProvider(String)
-
buildFor
public abstract ServiceConfiguration buildFor(Set<? extends System> systems, Properties coordinates)
Deprecated.Given aSet
ofSystem
s and an optionalProperties
object representing coordinates identifying a configuration space in which configuration discovery is to take place, returns a newServiceConfiguration
appropriate for the configuration space implied by the supplied parameters, ornull
if no suchServiceConfiguration
is 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,
ServiceConfiguration
instances.Implementations of this method may rely on the fact that all members of the supplied
Set
ofSystem
s will be enabled.Implementations of this method must not call the
ServiceConfiguration.getInstance(String, Properties)
method, as an infinite loop may result.- Parameters:
systems
- aSet
ofSystem
s found to be in effect; may benull
coordinates
- aProperties
object containing hints that may help in the implementation of theServiceConfiguration
to be returned; may benull
- Returns:
- a
ServiceConfiguration
suitable for the configuration space implied by the supplied parameters, ornull
if no suchServiceConfiguration
is applicable - See Also:
ServiceConfiguration.getInstance(String, Properties)
-
getAuthoritativeSystem
protected static final System getAuthoritativeSystem(Set<? extends System> systems, Properties coordinates)
Deprecated.Given aSet
ofSystem
s, returns theSystem
from thatSet
that is deemed to be the authoritative system, either because it is the only enabled member of theSet
or it is the first enabled member of theSet
whoseSystem.isAuthoritative()
method returnstrue
, ornull
if there is no authoritativeSystem
to be returned.This method may—and often does—return
null
.A
System
is 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
Set
ofSystem
s. - It describes itself as being authoritative.
- Parameters:
systems
- theSystem
s to inspect; may benull
coordinates
- aProperties
object containing hints that may help in the implementation of thisServiceConfigurationProvider
not currently used but reserved for future use; may benull
.- Returns:
- a
System
that is deemed to be authoritative, ornull
if no suchSystem
could be found
- It is the sole member of the supplied
-
-