Package org.opennms.pris.config
Class InstanceApacheConfiguration
java.lang.Object
org.opennms.pris.config.AbstractApacheConfiguration
org.opennms.pris.config.InstanceApacheConfiguration
- All Implemented Interfaces:
Configuration
,InstanceConfiguration
public class InstanceApacheConfiguration
extends AbstractApacheConfiguration
implements InstanceConfiguration
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the path to the configuration.Returns the identifier of the instance.Return a decorator Configuration containing every key from the current Configuration that starts with the specified prefix.Methods inherited from class org.opennms.pris.config.AbstractApacheConfiguration
addProperty, containsKey, getBoolean, getBoolean, getConfig, getConfiguration, getInt, getInt, getKeys, getPath, getPath, getPaths, getString, getString, getStringArray, isEmpty
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.opennms.pris.api.Configuration
addProperty, containsKey, getBoolean, getBoolean, getInt, getInt, getKeys, getPath, getPath, getPaths, getString, getString, getStringArray, isEmpty
-
Constructor Details
-
InstanceApacheConfiguration
-
-
Method Details
-
getBasePath
Description copied from interface:Configuration
Returns the path to the configuration.- Specified by:
getBasePath
in interfaceConfiguration
- Returns:
- the absolute path to the configuration folder.
-
getInstanceIdentifier
Description copied from interface:InstanceConfiguration
Returns the identifier of the instance.- Specified by:
getInstanceIdentifier
in interfaceInstanceConfiguration
- Returns:
- the identifier string
-
subset
Description copied from interface:InstanceConfiguration
Return a decorator Configuration containing every key from the current Configuration that starts with the specified prefix. The prefix is removed from the keys in the subset. Since the subset is a decorator and not a modified copy of the initial Configuration, any change made to the subset is available to the Configuration, and reciprocally.- Specified by:
subset
in interfaceInstanceConfiguration
- Parameters:
prefix
- The prefix used to select the properties- Returns:
- a subset configuration
-