javax.rad.server
Interface IConfiguration


public interface IConfiguration

The IConfiguration defines the access to the application or server configuration. The configuration contains properties/settings.


Method Summary
 XmlNode getNode(String pName)
          Gets the value for a property in xml representation.
 List<XmlNode> getNodes(String pName)
          Gets a list of values for a property in xml representation.
 List<String> getProperties(String pName)
          Gets a list of values for a property which exists more than once.
 String getProperty(String pName)
          Gets the value of a property from the configuration.
 String getProperty(String pName, String pDefault)
          Gets the value of a property from the configuration.
 

Method Detail

getProperty

String getProperty(String pName)
Gets the value of a property from the configuration.

Parameters:
pName - the property name (e.g /application/securitymanager/class)
Returns:
the value for the property or null if the property is not available

getProperty

String getProperty(String pName,
                   String pDefault)
Gets the value of a property from the configuration.

Parameters:
pName - the property name (e.g /application/securitymanager/class)
pDefault - the default value if the property is not available
Returns:
the value for the property or pDefault if the property is not available

getProperties

List<String> getProperties(String pName)
Gets a list of values for a property which exists more than once.

Parameters:
pName - the property name
Returns:
the list of values or null if the property is not available

getNode

XmlNode getNode(String pName)
Gets the value for a property in xml representation.

Parameters:
pName - the property name
Returns:
the available xml node or null if the property is not available

getNodes

List<XmlNode> getNodes(String pName)
Gets a list of values for a property in xml representation.

Parameters:
pName - the property name
Returns:
the list of available xml nodes or null if the property is not available


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.