cgl.narada.service
Class GlobalServiceProperties

java.lang.Object
  extended by cgl.narada.service.GlobalServiceProperties

public class GlobalServiceProperties
extends Object

This maintains the list of global service properties within multiple (or single) entity instances in a JVM.


Constructor Summary
protected GlobalServiceProperties()
           
 
Method Summary
protected  void addProperty(String property, String value)
          Adds a property to the global property list.
 String getProperty(String propertyName)
          Retrieve a certain property's value.
 Enumeration getPropertyNames()
          Gets a list of global property names registered with the global service properties.
 boolean hasProperty(String propertyName)
          Checks to see if a given property exists.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlobalServiceProperties

protected GlobalServiceProperties()
Method Detail

getPropertyNames

public Enumeration getPropertyNames()
Gets a list of global property names registered with the global service properties.

Returns:

addProperty

protected void addProperty(String property,
                           String value)
Adds a property to the global property list.

Parameters:
property - The key to be placed into this property list.
value - the value corresponding to key.

hasProperty

public boolean hasProperty(String propertyName)
Checks to see if a given property exists.

Parameters:
propertyName - The property name being checked for.
Returns:
true if it exists, false otherwise.

getProperty

public String getProperty(String propertyName)
Retrieve a certain property's value.

Parameters:
propertyName - The property being retrieved.
Returns:
the value of the property OR NULL if it is NOT present.


For comments and suggestions please send e-mail to The NaradaBrokering Project