org.openmobileis.embedded.util
Class ServicePropertiesManager
java.lang.Object
org.openmobileis.embedded.util.ServicePropertiesManager
- public class ServicePropertiesManager
- extends java.lang.Object
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.
- Since:
- JDK 1.1
- Version:
- 1.0.
- Author:
- Philippe Delrieu
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServicePropertiesManager
public ServicePropertiesManager(java.lang.String propertiersFileName)
getManager
public static ServicePropertiesManager getManager()
saveProperty
public void saveProperty(java.lang.String serviceName,
java.lang.String key,
java.lang.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
getProperty
public java.lang.String getProperty(java.lang.String serviceName,
java.lang.String key)
- return the property with specified key for specified service.
null if not found.
getPropertyKeysForService
public Array getPropertyKeysForService(java.lang.String serviceName)
deleteProperty
public void deleteProperty(java.lang.String serviceName,
java.lang.String key)
Copyright 2005 e-Care. All Rights Reserved.