Class ServiceConfigurationConfigSource
- java.lang.Object
-
- io.helidon.service.configuration.microprofile.config.ServiceConfigurationConfigSource
-
- All Implemented Interfaces:
ConfigSource
@Deprecated public class ServiceConfigurationConfigSource extends Object implements ConfigSource
Deprecated.This class is slated for removal.AConfigSource
implementation that wraps theServiceConfiguration
in effect.- See Also:
getValue(String)
,getProperties()
-
-
Field Summary
-
Fields inherited from interface org.eclipse.microprofile.config.spi.ConfigSource
CONFIG_ORDINAL, DEFAULT_ORDINAL
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ServiceConfigurationConfigSource()
Deprecated.Creates a newServiceConfigurationConfigSource
.protected
ServiceConfigurationConfigSource(ServiceConfiguration serviceConfiguration)
Deprecated.Creates a newServiceConfigurationConfigSource
.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
getName()
Deprecated.Returns the name of thisServiceConfigurationConfigSource
.Map<String,String>
getProperties()
Deprecated.Returns aMap
representing all properties known to thisServiceConfigurationConfigSource
.Set<String>
getPropertyNames()
Deprecated.Returns all property names known to thisServiceConfigurationConfigSource
by returning the result of invoking theServiceConfiguration.getPropertyNames()
method on the underlyingServiceConfiguration
.String
getValue(String name)
Deprecated.Returns the value of the property identified by the suppliedname
, ornull
if there is no such property or a value could not be found for some reason.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.microprofile.config.spi.ConfigSource
getOrdinal
-
-
-
-
Constructor Detail
-
ServiceConfigurationConfigSource
protected ServiceConfigurationConfigSource()
Deprecated.Creates a newServiceConfigurationConfigSource
.The name of this
ServiceConfigurationConfigSource
will be equal to the value of the system property named by concatenating thisServiceConfigurationConfigSource
's simple class name converted to lowercase with.serviceIdentifier
, or, if that isnull
, the simple class name converted to lowercase itself.
-
ServiceConfigurationConfigSource
protected ServiceConfigurationConfigSource(ServiceConfiguration serviceConfiguration)
Deprecated.Creates a newServiceConfigurationConfigSource
.- Parameters:
serviceConfiguration
- theServiceConfiguration
thisServiceConfigurationConfigSource
will wrap. If this parameter isnull
, then the service identifier for which to find aServiceConfiguration
will be determined by first trying to use the value of the system property named by concatenating thisServiceConfigurationConfigSource
's simple class name converted to lowercase with.serviceIdentifier
, and then, if that isnull
(as it commonly may be) by simply using thisServiceConfigurationConfigSource
's simple class name converted to lowercase. The result of invokingServiceConfiguration.getInstance(String)
on this value will then be used as if it had been passed directly.- See Also:
ServiceConfiguration.getInstance(String)
,ServiceConfiguration.getServiceIdentifier()
-
-
Method Detail
-
getName
public final String getName()
Deprecated.Returns the name of thisServiceConfigurationConfigSource
.This method never returns
null
.- Specified by:
getName
in interfaceConfigSource
- Returns:
- the name of this
ServiceConfigurationConfigSource
; nevernull
-
getPropertyNames
public final Set<String> getPropertyNames()
Deprecated.Returns all property names known to thisServiceConfigurationConfigSource
by returning the result of invoking theServiceConfiguration.getPropertyNames()
method on the underlyingServiceConfiguration
.This method never returns
null
.- Specified by:
getPropertyNames
in interfaceConfigSource
- Returns:
- all property names known to this
ServiceConfigurationConfigSource
; nevernull
- See Also:
ServiceConfiguration.getPropertyNames()
-
getProperties
public final Map<String,String> getProperties()
Deprecated.Returns aMap
representing all properties known to thisServiceConfigurationConfigSource
.This method never returns
null
.The
Map
that is returned is assembled using invocations of theServiceConfiguration.getPropertyNames()
andServiceConfiguration.getProperty(String)
methods.The
Map
that is returned is immutable and thread-safe.- Specified by:
getProperties
in interfaceConfigSource
- Returns:
- a
Map
representing all properties known to thisServiceConfigurationConfigSource
; nevernull
- See Also:
ServiceConfiguration.getPropertyNames()
,ServiceConfiguration.getProperty(String)
-
getValue
public final String getValue(String name)
Deprecated.Returns the value of the property identified by the suppliedname
, ornull
if there is no such property or a value could not be found for some reason.This method may return
null
.This method returns the result of invoking the
ServiceConfiguration.getProperty(String)
method with the suppliedname
.- Specified by:
getValue
in interfaceConfigSource
- Parameters:
name
- the name of the property; may benull
in which casenull
will be returned- Returns:
- a value for the named property, or
null
-
-