Class BundlesConfigurationPrinter
- java.lang.Object
-
- org.apache.felix.webconsole.internal.AbstractConfigurationPrinter
-
- org.apache.felix.webconsole.internal.core.BundlesConfigurationPrinter
-
- All Implemented Interfaces:
ConfigurationPrinter,org.apache.felix.webconsole.internal.OsgiManagerPlugin
public class BundlesConfigurationPrinter extends org.apache.felix.webconsole.internal.AbstractConfigurationPrinterTheBundlesConfigurationPrinterprints out the bundle list.
-
-
Field Summary
-
Fields inherited from interface org.apache.felix.webconsole.ConfigurationPrinter
MODE_ALWAYS, MODE_TXT, MODE_WEB, MODE_ZIP, PROPERTY_MODES, SERVICE
-
-
Constructor Summary
Constructors Constructor Description BundlesConfigurationPrinter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivate(org.osgi.framework.BundleContext bundleContext)This method is called from the Felix Web Console to ensure the AbstractWebConsolePlugin is correctly setup.voiddeactivate()This method is called, by the Web Console to de-activate the plugin and release all used resources.StringgetTitle()Returns a human readable title string to be placed in front of the configuration report generated by theConfigurationPrinter.printConfiguration(PrintWriter)method.voidprintConfiguration(PrintWriter pw)Prints the configuration report to the givenprintWriter.
-
-
-
Method Detail
-
activate
public void activate(org.osgi.framework.BundleContext bundleContext)
Description copied from interface:org.apache.felix.webconsole.internal.OsgiManagerPluginThis 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:
activatein interfaceorg.apache.felix.webconsole.internal.OsgiManagerPlugin- Overrides:
activatein classorg.apache.felix.webconsole.internal.AbstractConfigurationPrinter- Parameters:
bundleContext- the context of the plugin bundle- See Also:
AbstractConfigurationPrinter.activate(org.osgi.framework.BundleContext)
-
deactivate
public void deactivate()
Description copied from interface:org.apache.felix.webconsole.internal.OsgiManagerPluginThis method is called, by the Web Console to de-activate the plugin and release all used resources.- Specified by:
deactivatein interfaceorg.apache.felix.webconsole.internal.OsgiManagerPlugin- Overrides:
deactivatein classorg.apache.felix.webconsole.internal.AbstractConfigurationPrinter- See Also:
AbstractConfigurationPrinter.deactivate()
-
getTitle
public String getTitle()
Description copied from interface:ConfigurationPrinterReturns a human readable title string to be placed in front of the configuration report generated by theConfigurationPrinter.printConfiguration(PrintWriter)method.- Returns:
- the configuration title
- See Also:
ConfigurationPrinter.getTitle()
-
printConfiguration
public void printConfiguration(PrintWriter pw)
Description copied from interface:ConfigurationPrinterPrints the configuration report to the givenprintWriter. Implementations are free to print whatever information they deem useful.- Parameters:
pw- where to write the configuration data. It might be flushed, but must not be closed.- See Also:
ConfigurationPrinter.printConfiguration(java.io.PrintWriter)
-
-