Class UCPServiceConfigurationLocalhost
- java.lang.Object
-
- io.helidon.service.configuration.api.ServiceConfiguration
-
- io.helidon.service.configuration.ucp.UCPServiceConfiguration
-
- io.helidon.service.configuration.ucp.localhost.UCPServiceConfigurationLocalhost
-
@Deprecated public class UCPServiceConfigurationLocalhost extends UCPServiceConfiguration
Deprecated.This class is slated for removal.AUCPServiceConfiguration
that can dynamically add data source properties when they are requested.
-
-
Field Summary
-
Fields inherited from class io.helidon.service.configuration.ucp.UCPServiceConfiguration
coordinates, properties, system
-
-
Constructor Summary
Constructors Constructor Description UCPServiceConfigurationLocalhost(UCPServiceConfigurationLocalhostProvider provider, Properties properties, System system, Properties coordinates)
Deprecated.Creates a newUCPServiceConfigurationLocalhost
.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
getProperty(String propertyName, String defaultValue)
Deprecated.Overrides theUCPServiceConfiguration.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.ucp.UCPServiceConfiguration
getPropertyNames
-
Methods inherited from class io.helidon.service.configuration.api.ServiceConfiguration
getInstance, getInstance, getProperty, getServiceIdentifier
-
-
-
-
Constructor Detail
-
UCPServiceConfigurationLocalhost
public UCPServiceConfigurationLocalhost(UCPServiceConfigurationLocalhostProvider provider, Properties properties, System system, Properties coordinates)
Deprecated.Creates a newUCPServiceConfigurationLocalhost
.- Parameters:
provider
- theUCPServiceConfigurationLocalhostProvider
that is building thisUCPServiceConfigurationLocalhost
; 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:
UCPServiceConfigurationLocalhostProvider
-
-
Method Detail
-
getProperty
public String getProperty(String propertyName, String defaultValue)
Deprecated.Overrides theUCPServiceConfiguration.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 classUCPServiceConfiguration
- 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:
UCPServiceConfigurationLocalhostProvider.installDataSourceProperties(Properties, io.helidon.service.configuration.api.System, Properties, String)
-
-