Class SimpleWebConsolePlugin

  • All Implemented Interfaces:
    java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

    @Deprecated
    public abstract class SimpleWebConsolePlugin
    extends AbstractWebConsolePlugin
    Deprecated.
    Either register a servlet using Servlet API 5 or use AbstractServlet
    SimpleWebConsolePlugin is an utility class that provides default implementation of the AbstractWebConsolePlugin and supports the following features:
    • Methods for (un)registering the web console plugin service
    • Default implementation for resource loading
    See Also:
    Serialized Form
    • Method Detail

      • activate

        public void activate​(org.osgi.framework.BundleContext bundleContext)
        Deprecated.
        Description copied from class: AbstractWebConsolePlugin
        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.
        Overrides:
        activate in class AbstractWebConsolePlugin
        Parameters:
        bundleContext - the context of the plugin bundle
      • getCategory

        public java.lang.String getCategory()
        Deprecated.
        Description copied from class: AbstractWebConsolePlugin
        This method should return category string which will be used to render the plugin in the navigation menu. Default implementation returns null, which will result in the plugin link rendered as top level menu item. Concrete implementations wishing to be rendered as a sub-menu item under a category should override this method and return a string or define felix.webconsole.category OSGi property. Currently only single level categories are supported. So, this should be a simple String.
        Overrides:
        getCategory in class AbstractWebConsolePlugin
        Returns:
        category
        See Also:
        AbstractWebConsolePlugin.getCategory()
      • register

        public final SimpleWebConsolePlugin register​(org.osgi.framework.BundleContext bc)
        Deprecated.
        This is an utility method. It is used to register the plugin service. Don't forget to call the unregister() when the plugin is no longer needed.
        Parameters:
        bc - the bundle context used for service registration.
        Returns:
        self
      • unregister

        public final void unregister()
        Deprecated.
        An utility method that removes the service, registered by the register(BundleContext) method.
      • getService

        public final java.lang.Object getService​(java.lang.String serviceName)
        Deprecated.
        Gets the service with the specified class name. Will create a new ServiceTracker if the service is not already got.
        Parameters:
        serviceName - the service name to obtain
        Returns:
        the service or null if missing.