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.AbstractConfigurationPrinter
TheBundlesConfigurationPrinter
prints 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 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 theConfigurationPrinter.printConfiguration(PrintWriter)
method.void
printConfiguration(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.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 interfaceorg.apache.felix.webconsole.internal.OsgiManagerPlugin
- Overrides:
activate
in 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.OsgiManagerPlugin
This method is called, by the Web Console to de-activate the plugin and release all used resources.- Specified by:
deactivate
in interfaceorg.apache.felix.webconsole.internal.OsgiManagerPlugin
- Overrides:
deactivate
in classorg.apache.felix.webconsole.internal.AbstractConfigurationPrinter
- See Also:
AbstractConfigurationPrinter.deactivate()
-
getTitle
public String getTitle()
Description copied from interface:ConfigurationPrinter
Returns 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:ConfigurationPrinter
Prints 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)
-
-