Package org.apache.any23.configuration
Class DefaultModifiableConfiguration
- java.lang.Object
-
- org.apache.any23.configuration.DefaultConfiguration
-
- org.apache.any23.configuration.DefaultModifiableConfiguration
-
- All Implemented Interfaces:
Configuration
,ModifiableConfiguration
public class DefaultModifiableConfiguration extends DefaultConfiguration implements ModifiableConfiguration
Default implementation ofModifiableConfiguration
.- Author:
- Michele Mostarda (mostarda@fbk.eu)
-
-
Field Summary
-
Fields inherited from class org.apache.any23.configuration.DefaultConfiguration
DEFAULT_CONFIG_FILE, FLAG_PROPERTY_OFF, FLAG_PROPERTY_ON, logger, properties, singleton
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DefaultModifiableConfiguration(Properties properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
setProperty(String propertyName, String propertyValue)
Sets a new valuepropertyValue
for property which namepropertyName
.-
Methods inherited from class org.apache.any23.configuration.DefaultConfiguration
copy, defineProperty, getConfigurationDump, getFlagProperty, getProperties, getProperty, getPropertyIntOrFail, getPropertyOrFail, singleton
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.any23.configuration.Configuration
defineProperty, getConfigurationDump, getFlagProperty, getProperties, getProperty, getPropertyIntOrFail, getPropertyOrFail
-
-
-
-
Constructor Detail
-
DefaultModifiableConfiguration
protected DefaultModifiableConfiguration(Properties properties)
-
-
Method Detail
-
setProperty
public String setProperty(String propertyName, String propertyValue)
Description copied from interface:ModifiableConfiguration
Sets a new valuepropertyValue
for property which namepropertyName
.- Specified by:
setProperty
in interfaceModifiableConfiguration
- Parameters:
propertyName
- name of property.propertyValue
- value of property.- Returns:
- the old property value.
-
-