Class HikariCPServiceConfiguration
- java.lang.Object
-
- io.helidon.service.configuration.api.ServiceConfiguration
-
- io.helidon.service.configuration.hikaricp.HikariCPServiceConfiguration
-
- Direct Known Subclasses:
HikariCPServiceConfigurationLocalhost
@Deprecated public class HikariCPServiceConfiguration extends ServiceConfiguration
Deprecated.This class is slated for removal.An abstractServiceConfiguration
implementation that provides configuration information for Hikari connection pool componentry.
-
-
Field Summary
Fields Modifier and Type Field Description protected Properties
coordinates
Deprecated.AProperties
instance representing the meta-properties in effect at the time thisHikariCPServiceConfiguration
was constructed.protected Properties
properties
Deprecated.AProperties
instance supplied at construction time containing the property values that will ultimately be returned by the default implementation of thegetPropertyNames()
andgetProperty(String, String)
methods.protected System
system
Deprecated.TheSystem
that was determined to be the authoritativeSystem
at the time thisHikariCPServiceConfiguration
was constructed.
-
Constructor Summary
Constructors Modifier Constructor Description protected
HikariCPServiceConfiguration(Properties properties, System system, Properties coordinates)
Deprecated.Creates a newHikariCPServiceConfiguration
.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
getProperty(String propertyName, String defaultValue)
Deprecated.Returns a value for the property described by the suppliedpropertyName
, or the value of the supplieddefaultValue
parameter if no such property value exists.Set<String>
getPropertyNames()
Deprecated.Returns an unmodifiable and unchangingSet
ofString
s representing the names of properties whose values may be retrieved with thegetProperty(String, String)
method.-
Methods inherited from class io.helidon.service.configuration.api.ServiceConfiguration
getInstance, getInstance, getProperty, getServiceIdentifier
-
-
-
-
Field Detail
-
properties
protected final Properties properties
Deprecated.AProperties
instance supplied at construction time containing the property values that will ultimately be returned by the default implementation of thegetPropertyNames()
andgetProperty(String, String)
methods.This field is never
null
.
-
system
protected final System system
Deprecated.TheSystem
that was determined to be the authoritativeSystem
at the time thisHikariCPServiceConfiguration
was constructed.This field may be
null
.
-
coordinates
protected final Properties coordinates
Deprecated.AProperties
instance representing the meta-properties in effect at the time thisHikariCPServiceConfiguration
was constructed.This field may be
null
.
-
-
Constructor Detail
-
HikariCPServiceConfiguration
protected HikariCPServiceConfiguration(Properties properties, System system, Properties coordinates)
Deprecated.Creates a newHikariCPServiceConfiguration
.- Parameters:
properties
- aProperties
instance containing the property values that will ultimately be returned by the default implementation of thegetPropertyNames()
andgetProperty(String, String)
methods; may benull
system
- theSystem
that was determined to be the authoritativeSystem
; may benull
coordinates
- aProperties
instance representing the meta-properties in effect; may benull
- See Also:
ServiceConfigurationProvider.buildFor(Set, Properties)
,ServiceConfigurationProvider.getAuthoritativeSystem(Set, Properties)
-
-
Method Detail
-
getPropertyNames
public Set<String> getPropertyNames()
Deprecated.Returns an unmodifiable and unchangingSet
ofString
s representing the names of properties whose values may be retrieved with thegetProperty(String, String)
method.This method never returns
null
.Overrides of this method must not return
null
.Overrides of this method must ensure that the
Set
returned may be used without the end user having to peform explicit synchronization.This method and its overrides, if any, may return the same
Set
instance with each invocation, or differentSet
instances with different contents.- Specified by:
getPropertyNames
in classServiceConfiguration
- Returns:
- an unmodifiable and unchanging
Set
ofString
s representing the names of properties whose values may be retrieved with thegetProperty(String, String)
method - See Also:
getProperty(String, String)
-
getProperty
public String getProperty(String propertyName, String defaultValue)
Deprecated.Returns a value for the property described by the suppliedpropertyName
, or the value of the supplieddefaultValue
parameter if no such property value exists.This method will return
null
ifdefaultValue
isnull
.Overrides of this method may return
null
ifdefaultValue
isnull
.This method and its overrides, if any, may return the same or different values for each invocation with the same parameters.
- Specified by:
getProperty
in classServiceConfiguration
- Parameters:
propertyName
- the name of the property whose value should be returned; may benull
in which case the value of the supplieddefaultValue
parameter will be returned insteaddefaultValue
- the value to return if a value for the named property could not be found; may benull
- Returns:
- a value for the property described by the supplied
propertyName
, or the value of the supplieddefaultValue
parameter - See Also:
getPropertyNames()
-
-