org.apache.felix.webconsole.internal
Class AbstractConfigurationPrinter
java.lang.Object
org.apache.felix.webconsole.internal.AbstractConfigurationPrinter
- All Implemented Interfaces:
- ConfigurationPrinter, OsgiManagerPlugin
- Direct Known Subclasses:
- ComponentConfigurationPrinter, ConfigurationAdminConfigurationPrinter, PermissionsConfigurationPrinter, PreferencesConfigurationPrinter, ServicesConfigurationPrinter, SystemPropertiesPrinter, ThreadPrinter, WireAdminConfigurationPrinter
public abstract class AbstractConfigurationPrinter
- extends Object
- implements ConfigurationPrinter, OsgiManagerPlugin
AbstractConfigurationPrinter is an utility class, that provides a basic implementation
of ConfigurationPrinter
and OsgiManagerPlugin
interfaces.
Method Summary |
void |
activate(BundleContext bundleContext)
This method is called from the Felix Web Console to ensure the
AbstractWebConsolePlugin is correctly setup. |
void |
deactivate()
This method is called, by the Web Console to de-activate the plugin and release
all used resources. |
protected BundleContext |
getBundleContext()
Returns the BundleContext with which this plugin has been
activated. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractConfigurationPrinter
public AbstractConfigurationPrinter()
activate
public void activate(BundleContext bundleContext)
- Description copied from interface:
OsgiManagerPlugin
- This method is called from the Felix Web Console to ensure the
AbstractWebConsolePlugin is correctly setup.
It is called right after the Web Console receives notification for
plugin registration.
- Specified by:
activate
in interface OsgiManagerPlugin
- Parameters:
bundleContext
- the context of the plugin bundle- See Also:
OsgiManagerPlugin.activate(org.osgi.framework.BundleContext)
deactivate
public void deactivate()
- Description copied from interface:
OsgiManagerPlugin
- This method is called, by the Web Console to de-activate the plugin and release
all used resources.
- Specified by:
deactivate
in interface OsgiManagerPlugin
- See Also:
OsgiManagerPlugin.deactivate()
getBundleContext
protected BundleContext getBundleContext()
- Returns the
BundleContext
with which this plugin has been
activated. If the plugin has not be activated by calling the
activate(BundleContext)
method, this method returns
null
.
- Returns:
- the bundle context or
null
if the bundle is not activated.
Copyright © 2011 Apache Software Foundation. All Rights Reserved.