public class HikariCPServiceConfigurationLocalhost extends HikariCPServiceConfiguration
HikariCPServiceConfiguration that can dynamically add
data source properties when they are requested.coordinates, properties, system| Constructor and Description |
|---|
HikariCPServiceConfigurationLocalhost(HikariCPServiceConfigurationLocalhostProvider provider,
Properties properties,
System system,
Properties coordinates)
Creates a new
HikariCPServiceConfigurationLocalhost. |
| Modifier and Type | Method and Description |
|---|---|
String |
getProperty(String propertyName,
String defaultValue)
Overrides the
HikariCPServiceConfiguration.getProperty(String, String) method
to return a value for the supplied propertyName, and, if
one is not found and the propertyName parameter value
starts with javax.sql.Datasource., to "just-in-time"
install certain properties related to the data source in
question, before attempting its retrieval again. |
getPropertyNamesgetInstance, getInstance, getProperty, getServiceIdentifierpublic HikariCPServiceConfigurationLocalhost(HikariCPServiceConfigurationLocalhostProvider provider, Properties properties, System system, Properties coordinates)
HikariCPServiceConfigurationLocalhost.provider - the HikariCPServiceConfigurationLocalhostProvider that is building this HikariCPServiceConfigurationLocalhost; must not be nullproperties - a Properties instance that will be used
as the basis of this implementation; must not be nullsystem - a System determined to be in effect; may,
strictly speaking, be null but ordinarily is non-null and enabledcoordinates - a Properties instance representing the
meta-properties in effect; may be nullNullPointerException - if provider or properties is nullHikariCPServiceConfigurationLocalhostProviderpublic String getProperty(String propertyName, String defaultValue)
HikariCPServiceConfiguration.getProperty(String, String) method
to return a value for the supplied propertyName, and, if
one is not found and the propertyName parameter value
starts with javax.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 if defaultValue is
null.
Overrides of this method may return null.
getProperty in class HikariCPServiceConfigurationpropertyName - the name of the property in question; must
not be nulldefaultValue - the value to return if all attempts to
retrieve a property value fail; may be nullpropertyName, or defaultValue if no such value exists
and none could be generatedNullPointerException - if propertyName is nullHikariCPServiceConfigurationLocalhostProvider.installDataSourceProperties(Properties,
System, Properties, String)Copyright © 2018–2019 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms.