public interface ConfigurationPrinter
ConfigurationPrinter
is a service interface to be used by
providers which want to hook into the display of the current configuration
of the OSGi framework.
A configuration printer is currently used in three modes: displayed in
a tab of the configuration web console plugin, included in a downloadable
zip of the configuration or a downloadable txt file.
With the WebConsoleConstants.CONFIG_PRINTER_MODES
property this
service can specify when it should be included.
The default mode is MODE_ALWAYS
.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
MODE_ALWAYS
Deprecated.
The default mode - this printer is used in the web console and the zip.
|
static java.lang.String |
MODE_TXT
Deprecated.
The txt mode - this printer is used in the txt.
|
static java.lang.String |
MODE_WEB
Deprecated.
The web mode - this printer is used in the web console.
|
static java.lang.String |
MODE_ZIP
Deprecated.
The zip mode - this printer is used in the zip.
|
static java.lang.String |
PROPERTY_MODES
Deprecated.
|
static java.lang.String |
SERVICE
Deprecated.
The service name under which services of this class must be registered
to be picked for inclusion in the configuration report.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getTitle()
Deprecated.
Returns a human readable title string to be placed in front of the configuration
report generated by the
printConfiguration(PrintWriter) method. |
void |
printConfiguration(java.io.PrintWriter printWriter)
Deprecated.
Prints the configuration report to the given
printWriter . |
static final java.lang.String SERVICE
static final java.lang.String MODE_ALWAYS
static final java.lang.String MODE_WEB
Output of the configuration printer is HTML-escaped unless the
WebConsoleConstants.CONFIG_PRINTER_WEB_UNESCAPED
service
registration property is set to true
.
static final java.lang.String MODE_ZIP
static final java.lang.String MODE_TXT
static final java.lang.String PROPERTY_MODES
WebConsoleConstants.CONFIG_PRINTER_MODES
MODE_ALWAYS
is used.
The value of this property is either a single string or an
array of strings.java.lang.String getTitle()
printConfiguration(PrintWriter)
method.void printConfiguration(java.io.PrintWriter printWriter)
printWriter
.
Implementations are free to print whatever information they deem useful.printWriter
- where to write the configuration data. It might be flushed,
but must not be closed."Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"