public abstract class SimpleWebConsolePlugin extends AbstractWebConsolePlugin
AbstractWebConsolePlugin
and supports the
following features:
ATTR_FILEUPLOAD, ATTR_FILEUPLOAD_REPO, GET_RESOURCE_METHOD_NAME
Constructor and Description |
---|
SimpleWebConsolePlugin(java.lang.String label,
java.lang.String title,
java.lang.String[] css)
Creates new Simple Web Console Plugin with the default category
(
null ) |
SimpleWebConsolePlugin(java.lang.String label,
java.lang.String title,
java.lang.String category,
java.lang.String[] css)
Creates new Simple Web Console Plugin with the given category.
|
Modifier and Type | Method and Description |
---|---|
void |
deactivate()
This method will close all service trackers, created by
getService(String) method. |
java.lang.String |
getCategory()
This method should return category string which will be used to render
the plugin in the navigation menu.
|
java.lang.String |
getLabel()
Retrieves the label.
|
java.lang.Object |
getService(java.lang.String serviceName)
Gets the service with the specified class name.
|
java.lang.String |
getTitle()
Retrieves the title of the plug-in.
|
SimpleWebConsolePlugin |
register(BundleContext bc)
This is an utility method.
|
void |
unregister()
An utility method that removes the service, registered by the
register(BundleContext) method. |
activate, getBrandingPlugin, getBundle, getParameter, getServletName, log, log, setBrandingPlugin, setLogLevel
public SimpleWebConsolePlugin(java.lang.String label, java.lang.String title, java.lang.String[] css)
null
)label
- the front label. See
AbstractWebConsolePlugin.getLabel()
title
- the plugin title . See
AbstractWebConsolePlugin.getTitle()
css
- the additional plugin CSS. See
AbstractWebConsolePlugin.getCssReferences()
public SimpleWebConsolePlugin(java.lang.String label, java.lang.String title, java.lang.String category, java.lang.String[] css)
label
- the front label. See
AbstractWebConsolePlugin.getLabel()
title
- the plugin title . See
AbstractWebConsolePlugin.getTitle()
category
- the plugin's navigation category. See
AbstractWebConsolePlugin.getCategory()
css
- the additional plugin CSS. See
AbstractWebConsolePlugin.getCssReferences()
public final java.lang.String getLabel()
AbstractWebConsolePlugin
AbstractWebConsolePlugin.AbstractWebConsolePlugin()
constructor is used.getLabel
in class AbstractWebConsolePlugin
AbstractWebConsolePlugin.getLabel()
public final java.lang.String getTitle()
AbstractWebConsolePlugin
AbstractWebConsolePlugin.AbstractWebConsolePlugin()
constructor is used.getTitle
in class AbstractWebConsolePlugin
AbstractWebConsolePlugin.getTitle()
public java.lang.String getCategory()
AbstractWebConsolePlugin
felix.webconsole.category
OSGi property. Currently only
single level categories are supported. So, this should be a simple
String.getCategory
in class AbstractWebConsolePlugin
AbstractWebConsolePlugin.getCategory()
public final SimpleWebConsolePlugin register(BundleContext bc)
unregister()
when the plugin is no longer
needed.bc
- the bundle context used for service registration.public final void unregister()
register(BundleContext)
method.public final java.lang.Object getService(java.lang.String serviceName)
ServiceTracker
if the service is not already got.serviceName
- the service name to obtainnull
if missing.public void deactivate()
getService(String)
method. If you override this method, don't
forget to call the super.deactivate
in class AbstractWebConsolePlugin
AbstractWebConsolePlugin.deactivate()
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"