public final class ConfigurationHolderImpl extends Object implements ConfigurationHolder
Constructor and Description |
---|
ConfigurationHolderImpl(Map<String,String> map)
This is the class constructor.
|
ConfigurationHolderImpl(Map<String,String> map,
String propertyPart)
This is the class constructor.
|
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getConfiguration()
Returns the configuration.
|
String |
getConfigurationValue(Enum<?> key)
Returns the value from the component configuration based on the provided configuration key.
|
String |
getConfigurationValue(String key)
Returns the value from the component configuration based on the provided configuration key.
|
String |
getPropertyPart()
Returns the property part.
Property parts enables to replace the input request key with the part defined to enable to reuse services with different configuration blocks. Property parts are the values after the common prefix and before any specific configuration key, or in other words the top context of the configuration. For example: org.fax4j.[partvalue].some.key The org.fax4j is the common prefix, the some.key is the suffix and partvalue is the part to be replaced. |
public ConfigurationHolderImpl(Map<String,String> map)
map
- The configuration as mappublic String getPropertyPart()
getPropertyPart
in interface ConfigurationHolder
public Map<String,String> getConfiguration()
getConfiguration
in interface ConfigurationHolder
public String getConfigurationValue(String key)
getConfigurationValue
in interface ConfigurationHolder
key
- The configuration keypublic String getConfigurationValue(Enum<?> key)
getConfigurationValue
in interface ConfigurationHolder
key
- The configuration key (toString value will be used)Copyright © 2009–2020 fax4j. All rights reserved.