Class HikariCPServiceConfigurationLocalhost
- java.lang.Object
-
- io.helidon.service.configuration.api.ServiceConfiguration
-
- io.helidon.service.configuration.hikaricp.HikariCPServiceConfiguration
-
- io.helidon.service.configuration.hikaricp.localhost.HikariCPServiceConfigurationLocalhost
-
@Deprecated public class HikariCPServiceConfigurationLocalhost extends HikariCPServiceConfiguration
Deprecated.This class is slated for removal.AHikariCPServiceConfiguration
that can dynamically add data source properties when they are requested.
-
-
Field Summary
-
Fields inherited from class io.helidon.service.configuration.hikaricp.HikariCPServiceConfiguration
coordinates, properties, system
-
-
Constructor Summary
Constructors Constructor Description HikariCPServiceConfigurationLocalhost(HikariCPServiceConfigurationLocalhostProvider provider, Properties properties, System system, Properties coordinates)
Deprecated.Creates a newHikariCPServiceConfigurationLocalhost
.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
getProperty(String propertyName, String defaultValue)
Deprecated.Overrides theHikariCPServiceConfiguration.getProperty(String, String)
method to return a value for the suppliedpropertyName
, and, if one is not found and thepropertyName
parameter value starts withjavax.sql.Datasource.
, to "just-in-time" install certain properties related to the data source in question, before attempting its retrieval again.-
Methods inherited from class io.helidon.service.configuration.hikaricp.HikariCPServiceConfiguration
getPropertyNames
-
Methods inherited from class io.helidon.service.configuration.api.ServiceConfiguration
getInstance, getInstance, getProperty, getServiceIdentifier
-
-
-
-
Constructor Detail
-
HikariCPServiceConfigurationLocalhost
public HikariCPServiceConfigurationLocalhost(HikariCPServiceConfigurationLocalhostProvider provider, Properties properties, System system, Properties coordinates)
Deprecated.Creates a newHikariCPServiceConfigurationLocalhost
.- Parameters:
provider
- theHikariCPServiceConfigurationLocalhostProvider
that is building thisHikariCPServiceConfigurationLocalhost
; must not benull
properties
- aProperties
instance that will be used as the basis of this implementation; must not benull
system
- aSystem
determined to be in effect; may, strictly speaking, benull
but ordinarily is non-null
and enabledcoordinates
- aProperties
instance representing the meta-properties in effect; may benull
- Throws:
NullPointerException
- ifprovider
orproperties
isnull
- See Also:
HikariCPServiceConfigurationLocalhostProvider
-
-
Method Detail
-
getProperty
public String getProperty(String propertyName, String defaultValue)
Deprecated.Overrides theHikariCPServiceConfiguration.getProperty(String, String)
method to return a value for the suppliedpropertyName
, and, if one is not found and thepropertyName
parameter value starts withjavax.sql.Datasource.
, to "just-in-time" install certain properties related to the data source in question, before attempting its retrieval again.This method may return
null
ifdefaultValue
isnull
.Overrides of this method may return
null
.- Overrides:
getProperty
in classHikariCPServiceConfiguration
- Parameters:
propertyName
- the name of the property in question; must not benull
defaultValue
- the value to return if all attempts to retrieve a property value fail; may benull
- Returns:
- a value for the property named by the supplied
propertyName
, ordefaultValue
if no such value exists and none could be generated - Throws:
NullPointerException
- ifpropertyName
isnull
- See Also:
HikariCPServiceConfigurationLocalhostProvider.installDataSourceProperties(Properties, io.helidon.service.configuration.api.System, Properties, String)
-
-