org.jclouds.karaf.commands.table.internal
Class ManagedShellTableFactory

java.lang.Object
  extended by org.jclouds.karaf.commands.table.BasicShellTableFactory
      extended by org.jclouds.karaf.commands.table.internal.ManagedShellTableFactory
All Implemented Interfaces:
ShellTableFactory, org.osgi.service.cm.ManagedService

public class ManagedShellTableFactory
extends BasicShellTableFactory
implements org.osgi.service.cm.ManagedService


Field Summary
 
Fields inherited from interface org.jclouds.karaf.commands.table.ShellTableFactory
ALIGN_KEY, ASCENDING_KEY, DELIMITER_KEY, EXPRESSIONS_KEY, HEADERS_KEY, SCRIPTING_ENGINE, SHORTBY_KEY
 
Constructor Summary
ManagedShellTableFactory()
           
 
Method Summary
 void updated(Dictionary properties)
          Update the configuration for a Managed Service.
 
Methods inherited from class org.jclouds.karaf.commands.table.BasicShellTableFactory
build, getProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManagedShellTableFactory

public ManagedShellTableFactory()
Method Detail

updated

public void updated(Dictionary properties)
             throws org.osgi.service.cm.ConfigurationException
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 org.osgi.service.cm.ManagedService
Parameters:
properties - 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.
Throws:
org.osgi.service.cm.ConfigurationException - when the update fails


Copyright © 2012. All Rights Reserved.