public class

CommonsConfigurationWrapper

extends Object
implements IConfiguration
java.lang.Object
   ↳ com.pnfsoftware.jeb.core.properties.impl.CommonsConfigurationWrapper

Class Overview

This class wraps Apache Commons Configuration v2 objects. Such objects implement IConfiguration, and can be managed by IPropertyManagers.

Summary

Public Constructors
CommonsConfigurationWrapper(Configuration cfg)
Create a wrapper.
Public Methods
void clearProperty(String key)
Remove a property from the configuration object.
Set<String> getAllPropertyKeys()
Get the collection of all property keys held by this configuration object.
Object getProperty(String key)
Retrieve a property value.
void setProperty(String key, Object value)
Set a property value.
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.pnfsoftware.jeb.core.properties.IConfiguration

Public Constructors

public CommonsConfigurationWrapper (Configuration cfg)

Create a wrapper.

Parameters
cfg the Apache configuration object to be managed

Public Methods

public void clearProperty (String key)

Remove a property from the configuration object.

Parameters
key the property key

public Set<String> getAllPropertyKeys ()

Get the collection of all property keys held by this configuration object.

public Object getProperty (String key)

Retrieve a property value.

Parameters
key the property key
Returns
  • the property value, null if the property does not exist

public void setProperty (String key, Object value)

Set a property value.

Parameters
key the property key
value the property value

public String toString ()