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(String label,
String title,
String[] css)
Creates new Simple Web Console Plugin with the default category
(
null) |
SimpleWebConsolePlugin(String label,
String title,
String category,
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. |
String |
getCategory()
This method should return category string which will be used to render
the plugin in the navigation menu.
|
String |
getLabel()
Retrieves the label.
|
Object |
getService(String serviceName)
Gets the service with the specified class name.
|
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, setLogLevelservicedestroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, init, init, log, logpublic SimpleWebConsolePlugin(String label, String title, 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(String label, String title, String category, 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 String getLabel()
AbstractWebConsolePluginAbstractWebConsolePlugin.AbstractWebConsolePlugin()
constructor is used.getLabel in class AbstractWebConsolePluginAbstractWebConsolePlugin.getLabel()public final String getTitle()
AbstractWebConsolePluginAbstractWebConsolePlugin.AbstractWebConsolePlugin()
constructor is used.getTitle in class AbstractWebConsolePluginAbstractWebConsolePlugin.getTitle()public String getCategory()
AbstractWebConsolePluginfelix.webconsole.category OSGi property. Currently only
single level categories are supported. So, this should be a simple
String.getCategory in class AbstractWebConsolePluginAbstractWebConsolePlugin.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 Object getService(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 AbstractWebConsolePluginAbstractWebConsolePlugin.deactivate()Copyright © 2010 - 2020 Adobe. All Rights Reserved