org.openmobileis.common.util.PersistentPropertiesManager Class Reference

List of all members.

Detailed Description

Title: OpenMobileIS project source
Description: Utility classe to allow to store is the properties file misc.properties service properties to be use later.

The storage is persistent. Use this classe when you want to store or get specific service properties. The misc.properties file is created during the first start of the embedded server after installation. Stored properties are mostly runtime properties that are not usefull for the first start. To store service proerties that are needed for the first start use the webserver.properties.

Author:
Philippe Delrieu
Since:
JDK 1.1
Version:
1.0.

Definition at line 50 of file PersistentPropertiesManager.java.

Public Member Functions

 PersistentPropertiesManager (String propertiersFileName)
void saveProperty (String serviceName, String key, String value)
 save the property (key, value) for specified serviceName.
String getProperty (String serviceName, String key)
 return the property with specified key for specified service.
Array getPropertyKeysForService (String serviceName)
void deleteProperty (String serviceName, String key)

Static Public Member Functions

static PersistentPropertiesManager getManager ()


Member Function Documentation

void org.openmobileis.common.util.PersistentPropertiesManager.saveProperty ( String  serviceName,
String  key,
String  value 
)

save the property (key, value) for specified serviceName.

key must have less or equals than 15 caractere and value less or equals than 30

Definition at line 97 of file PersistentPropertiesManager.java.

String org.openmobileis.common.util.PersistentPropertiesManager.getProperty ( String  serviceName,
String  key 
)

return the property with specified key for specified service.

null if not found.

Definition at line 106 of file PersistentPropertiesManager.java.


The documentation for this class was generated from the following file:
Generated on Mon Dec 4 11:03:34 2006 for OpenMobileIS by  doxygen 1.5.1-p1