public class BundlesConfigurationPrinter
extends org.apache.felix.webconsole.internal.AbstractConfigurationPrinter
BundlesConfigurationPrinter
prints out the bundle list.MODE_ALWAYS, MODE_TXT, MODE_WEB, MODE_ZIP, PROPERTY_MODES, SERVICE
Constructor and Description |
---|
BundlesConfigurationPrinter() |
Modifier and Type | Method and Description |
---|---|
void |
activate(org.osgi.framework.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.
|
String |
getTitle()
Returns a human readable title string to be placed in front of the configuration
report generated by the
ConfigurationPrinter.printConfiguration(PrintWriter) method. |
void |
printConfiguration(PrintWriter pw)
Prints the configuration report to the given
printWriter . |
public void activate(org.osgi.framework.BundleContext bundleContext)
org.apache.felix.webconsole.internal.OsgiManagerPlugin
activate
in interface org.apache.felix.webconsole.internal.OsgiManagerPlugin
activate
in class org.apache.felix.webconsole.internal.AbstractConfigurationPrinter
bundleContext
- the context of the plugin bundleAbstractConfigurationPrinter.activate(org.osgi.framework.BundleContext)
public void deactivate()
org.apache.felix.webconsole.internal.OsgiManagerPlugin
deactivate
in interface org.apache.felix.webconsole.internal.OsgiManagerPlugin
deactivate
in class org.apache.felix.webconsole.internal.AbstractConfigurationPrinter
AbstractConfigurationPrinter.deactivate()
public String getTitle()
ConfigurationPrinter
ConfigurationPrinter.printConfiguration(PrintWriter)
method.ConfigurationPrinter.getTitle()
public void printConfiguration(PrintWriter pw)
ConfigurationPrinter
printWriter
.
Implementations are free to print whatever information they deem useful.pw
- where to write the configuration data. It might be flushed,
but must not be closed.ConfigurationPrinter.printConfiguration(java.io.PrintWriter)
Copyright © 2006–2020 The Apache Software Foundation. All rights reserved.