public class HikariCPServiceConfiguration extends ServiceConfiguration
ServiceConfiguration implementation that
provides configuration information for Hikari
connection pool componentry.| Modifier and Type | Field and Description |
|---|---|
protected Properties |
coordinates
A
Properties instance representing the meta-properties in
effect at the time this HikariCPServiceConfiguration was
constructed. |
protected Properties |
properties
A
Properties instance supplied at
construction time containing the property values that will
ultimately be returned by the default implementation of the
getPropertyNames() and getProperty(String,
String) methods. |
protected System |
system
The
System that was determined to be the authoritative
System at the time this HikariCPServiceConfiguration was constructed. |
| Modifier | Constructor and Description |
|---|---|
protected |
HikariCPServiceConfiguration(Properties properties,
System system,
Properties coordinates)
Creates a new
HikariCPServiceConfiguration. |
| Modifier and Type | Method and Description |
|---|---|
String |
getProperty(String propertyName,
String defaultValue)
Returns a value for the property described by the supplied
propertyName, or the value of the supplied defaultValue
parameter if no such property value exists. |
Set<String> |
getPropertyNames()
Returns an unmodifiable and unchanging
Set of Strings
representing the names of properties whose values may be
retrieved with the getProperty(String, String) method. |
getInstance, getInstance, getProperty, getServiceIdentifierprotected final Properties properties
Properties instance supplied at
construction time containing the property values that will
ultimately be returned by the default implementation of the
getPropertyNames() and getProperty(String,
String) methods.
This field is never null.
protected final System system
System that was determined to be the authoritative
System at the time this HikariCPServiceConfiguration was constructed.
This field may be null.
protected final Properties coordinates
Properties instance representing the meta-properties in
effect at the time this HikariCPServiceConfiguration was
constructed.
This field may be null.
protected HikariCPServiceConfiguration(Properties properties, System system, Properties coordinates)
HikariCPServiceConfiguration.properties - a Properties instance containing the
property values that will ultimately be returned by the default
implementation of the getPropertyNames() and getProperty(String, String) methods; may be nullsystem - the System that was determined to be the
authoritative System; may be nullcoordinates - a Properties instance representing the
meta-properties in effect; may be nullServiceConfigurationProvider.buildFor(Set, Properties),
ServiceConfigurationProvider.getAuthoritativeSystem(Set, Properties)public Set<String> getPropertyNames()
Set of Strings
representing the names of properties whose values may be
retrieved with the getProperty(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 different Set instances with different contents.
getPropertyNames in class ServiceConfigurationSet of Strings
representing the names of properties whose values may be
retrieved with the getProperty(String, String) methodgetProperty(String, String)public String getProperty(String propertyName, String defaultValue)
propertyName, or the value of the supplied defaultValue
parameter if no such property value exists.
This method will return null if defaultValue
is null.
Overrides of this method may return null if defaultValue is null.
This method and its overrides, if any, may return the same or different values for each invocation with the same parameters.
getProperty in class ServiceConfigurationpropertyName - the name of the property whose value should
be returned; may be null in which case the value of the
supplied defaultValue parameter will be returned insteaddefaultValue - the value to return if a value for the named
property could not be found; may be nullpropertyName, or the value of the supplied defaultValue
parametergetPropertyNames()Copyright © 2018–2019 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms.