|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.buglabs.osgi.cm.persistance.PersistanceManager
public class PersistanceManager
Helper class that aids in persisting, updating and retrieving
Configurations
| Constructor Summary | |
|---|---|
PersistanceManager()
|
|
| Method Summary | |
|---|---|
boolean |
delete(Configuration config)
Delete files from storage provided by the Framework |
Configuration |
retrieve(java.lang.String pid)
Retrieves Configuration identified by pid |
void |
store(Configuration config)
Persists Configuration object to storage provided by the
Framework |
void |
update(java.util.Dictionary properies,
Configuration configuration)
Updates properties of Configuration, if properties is null, all
Dictionary values will be removed exception Constants
.SERVICE_PID |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PersistanceManager()
| Method Detail |
|---|
public boolean delete(Configuration config)
throws java.io.IOException
delete in interface IPersistanceManagerpid - id of the Configuration to delete
true if Configuration has been removed
successfuly, false otherwise
java.io.IOException
public void store(Configuration config)
throws java.io.IOException
Configuration object to storage provided by the
Framework
store in interface IPersistanceManagerproperties -
java.io.IOException
public Configuration retrieve(java.lang.String pid)
throws java.io.IOException,
java.lang.ClassNotFoundException
IPersistanceManagerConfiguration identified by pid
retrieve in interface IPersistanceManagerpid - id of the service for which configuration need to be retrieved
Configuration for this service
java.io.IOException
java.lang.ClassNotFoundException
public void update(java.util.Dictionary properies,
Configuration configuration)
throws java.io.IOException,
java.lang.ClassNotFoundException
Configuration, if properties is null, all
Dictionary values will be removed exception Constants
.SERVICE_PID
update in interface IPersistanceManagerconfiguration - Configuration object properties of which should be
updated
java.lang.ClassNotFoundException
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||