ajax.common
Class Parameters

java.lang.Object
  |
  +--ajax.common.Parameters

public class Parameters
extends java.lang.Object

This class represents parameters passed to the runtime environment. It handles automatically parameters given as system properties. This class does not rely on any other non-system class. In particular, it can't use the Trace class, since Trace (and TraceManager) use this class.


Method Summary
 java.lang.String get(java.lang.String name)
          Return the value of paramameter.
static Parameters getInstance()
          Return the unique instance of this class.
 java.util.Properties getProperties()
          Return the properties of ajax framework.
 void put(java.lang.String name, java.lang.String value)
          Sets the value of the given paramameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static Parameters getInstance()
Return the unique instance of this class.
Returns:
the unique instance

get

public java.lang.String get(java.lang.String name)
Return the value of paramameter.
Parameters:
name - parameter name

put

public void put(java.lang.String name,
                java.lang.String value)
Sets the value of the given paramameter.
Parameters:
name - parameter name
value - the new parameter value

getProperties

public java.util.Properties getProperties()
Return the properties of ajax framework.
Returns:
ajax parameters