org.apache.felix.webconsole.plugins.event.internal
Class ConfigurationListener

java.lang.Object
  extended by org.apache.felix.webconsole.plugins.event.internal.ConfigurationListener
All Implemented Interfaces:
ConfigurationListener, ManagedService

public class ConfigurationListener
extends Object
implements ManagedService, ConfigurationListener


Method Summary
 void configurationEvent(ConfigurationEvent event)
          Receives notification of a Configuration that has changed.
 void updated(Dictionary config)
          Update the configuration for a Managed Service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

configurationEvent

public void configurationEvent(ConfigurationEvent event)
Description copied from interface: ConfigurationListener
Receives notification of a Configuration that has changed.

Specified by:
configurationEvent in interface ConfigurationListener
Parameters:
event - The ConfigurationEvent.
See Also:
ConfigurationListener.configurationEvent(org.osgi.service.cm.ConfigurationEvent)

updated

public void updated(Dictionary config)
Description copied from interface: ManagedService
Update the configuration for a Managed Service.

When the implementation of updated(Dictionary) detects any kind of error in the configuration properties, it should create a new ConfigurationException which describes the problem. This can allow a management system to provide useful information to a human administrator.

If this method throws any other Exception, the Configuration Admin service must catch it and should log it.

The Configuration Admin service must call this method asynchronously which initiated the callback. This implies that implementors of Managed Service can be assured that the callback will not take place during registration when they execute the registration in a synchronized method.

Specified by:
updated in interface ManagedService
Parameters:
config - A copy of the Configuration properties, or null. This argument must not contain the "service.bundleLocation" property. The value of this property may be obtained from the Configuration.getBundleLocation method.
See Also:
ManagedService.updated(java.util.Dictionary)


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.