|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.buglabs.osgi.cm.impl.ConfigurationImpl
public class ConfigurationImpl
Implementation of Configuration
| Constructor Summary | |
|---|---|
ConfigurationImpl(java.lang.String pid)
Constructor |
|
| Method Summary | |
|---|---|
void |
delete()
Delete this Configuration object. |
boolean |
equals(java.lang.Object obj)
Equality is defined to have equal PIDs Two Configuration objects are equal when their PIDs are equal. |
java.lang.String |
getBundleLocation()
Get the bundle location. |
java.lang.String |
getFactoryPid()
For a factory configuration return the PID of the corresponding Managed Service Factory, else return null. |
java.lang.String |
getPid()
Get the PID for this Configuration object. |
java.util.Dictionary |
getProperties()
Return the properties of this Configuration object. |
int |
hashCode()
Hash code is based on PID. |
void |
setBundleLocation(java.lang.String bundleLocation)
Bind this Configuration object to the specified bundle location. |
java.lang.String |
toString()
|
void |
update()
Update the Configuration object with the current properties. |
void |
update(java.util.Dictionary properties)
Update the properties of this Configuration object. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ConfigurationImpl(java.lang.String pid)
pid - PID that identifies this Configuration| Method Detail |
|---|
public void delete()
throws java.io.IOException
Configuration
delete in interface Configurationjava.io.IOException - If delete failspublic java.lang.String getBundleLocation()
ConfigurationThis call requires AdminPermission.
getBundleLocation in interface Configurationpublic java.lang.String getFactoryPid()
Configuration
getFactoryPid in interface Configurationpublic java.lang.String getPid()
Configuration
getPid in interface Configurationpublic java.util.Dictionary getProperties()
ConfigurationIf called just after the configuration is created and before update has been called, this method returns null.
getProperties in interface Configurationpublic void setBundleLocation(java.lang.String bundleLocation)
ConfigurationThis method requires AdminPermission.
setBundleLocation in interface ConfigurationbundleLocation - a bundle location or null
public void update()
throws java.io.IOException
ConfigurationThis is the only way for a bundle that uses a Configuration Plugin service to initate a callback. For example, when that bundle detects a change that requires an update of the Managed Service or Managed Service Factory via its ConfigurationPlugin object.
update in interface Configurationjava.io.IOException - if update cannot access the properties in persistent storageConfigurationPlugin
public void update(java.util.Dictionary properties)
throws java.io.IOException
ConfigurationIf the corresponding Managed Service/Managed Service Factory is registered, its updated method must be called asynchronously. Else, this callback is delayed until aforementioned registration occurs.
update in interface Configurationproperties - the new set of properties for this configuration
java.io.IOException - if update cannot be made persistentpublic int hashCode()
Configuration
hashCode in interface ConfigurationhashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
Configuration
equals in interface Configurationequals in class java.lang.Objectobj - Configuration object to compare against
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||