org.apache.felix.jmood.compendium
Class ConfigurationDelegate

java.lang.Object
  extended by org.apache.felix.jmood.compendium.ConfigurationDelegate
All Implemented Interfaces:
javax.management.MBeanRegistration, ConfigurationDelegateMBean

public class ConfigurationDelegate
extends java.lang.Object
implements javax.management.MBeanRegistration, ConfigurationDelegateMBean


Constructor Summary
ConfigurationDelegate(org.osgi.service.cm.Configuration configuration, AgentContext ac)
           
 
Method Summary
 void delete()
           
 void deleteProperty(java.lang.String key)
           
 java.lang.String getBundleLocation()
           
 java.lang.String getFactoryPid()
           
 java.lang.String getPid()
           
 java.util.Hashtable getProperties()
           
 java.lang.String getProperty(java.lang.String key)
           
 void postDeregister()
           
 void postRegister(java.lang.Boolean registrationDone)
           
 void preDeregister()
           
 javax.management.ObjectName preRegister(javax.management.MBeanServer server, javax.management.ObjectName name)
           
 void setBundleLocation(java.lang.String bundleLocation)
           
 void setProperty(java.lang.String key, java.lang.String value, java.lang.String type)
           
 void update()
           
 void update(java.util.Hashtable properties)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationDelegate

public ConfigurationDelegate(org.osgi.service.cm.Configuration configuration,
                             AgentContext ac)
Method Detail

getPid

public java.lang.String getPid()
Specified by:
getPid in interface ConfigurationDelegateMBean
See Also:
Configuration.getPid()

getProperties

public java.util.Hashtable getProperties()
Specified by:
getProperties in interface ConfigurationDelegateMBean
See Also:
Configuration.getProperties()

update

public void update(java.util.Hashtable properties)
            throws java.io.IOException
Specified by:
update in interface ConfigurationDelegateMBean
Throws:
java.io.IOException
See Also:
hashtable is a dictionary!

delete

public void delete()
            throws java.lang.Exception
Specified by:
delete in interface ConfigurationDelegateMBean
Throws:
java.lang.Exception
See Also:
Configuration.delete()

getFactoryPid

public java.lang.String getFactoryPid()
Specified by:
getFactoryPid in interface ConfigurationDelegateMBean
See Also:
Configuration.getFactoryPid()

update

public void update()
            throws java.io.IOException
Specified by:
update in interface ConfigurationDelegateMBean
Throws:
java.io.IOException
See Also:
Configuration.update()

setBundleLocation

public void setBundleLocation(java.lang.String bundleLocation)
Specified by:
setBundleLocation in interface ConfigurationDelegateMBean
See Also:
Configuration.setBundleLocation(java.lang.String)

getBundleLocation

public java.lang.String getBundleLocation()
Specified by:
getBundleLocation in interface ConfigurationDelegateMBean
See Also:
Configuration.getBundleLocation()

postDeregister

public void postDeregister()
Specified by:
postDeregister in interface javax.management.MBeanRegistration
See Also:
MBeanRegistration.postDeregister()

postRegister

public void postRegister(java.lang.Boolean registrationDone)
Specified by:
postRegister in interface javax.management.MBeanRegistration
See Also:
MBeanRegistration.postRegister(java.lang.Boolean)

preDeregister

public void preDeregister()
                   throws java.lang.Exception
Specified by:
preDeregister in interface javax.management.MBeanRegistration
Throws:
java.lang.Exception
See Also:
MBeanRegistration.preDeregister()

preRegister

public javax.management.ObjectName preRegister(javax.management.MBeanServer server,
                                               javax.management.ObjectName name)
                                        throws java.lang.Exception
Specified by:
preRegister in interface javax.management.MBeanRegistration
Throws:
java.lang.Exception
See Also:
MBeanRegistration.preRegister(javax.management.MBeanServer, javax.management.ObjectName)

getProperty

public java.lang.String getProperty(java.lang.String key)
                             throws java.lang.Exception
Specified by:
getProperty in interface ConfigurationDelegateMBean
Throws:
java.lang.Exception
See Also:
ConfigurationDelegateMBean.getProperty(java.lang.String)

setProperty

public void setProperty(java.lang.String key,
                        java.lang.String value,
                        java.lang.String type)
                 throws java.lang.Exception
Specified by:
setProperty in interface ConfigurationDelegateMBean
Throws:
java.lang.Exception
See Also:
org.apache.felix.jmood.compendium.ConfigurationDelegateMBean#setProperty(java.lang.String, java.lang.String)

deleteProperty

public void deleteProperty(java.lang.String key)
                    throws java.lang.Exception
Specified by:
deleteProperty in interface ConfigurationDelegateMBean
Throws:
java.lang.Exception