Class PluginActivator

    • Constructor Detail

      • PluginActivator

        public PluginActivator()
    • Method Detail

      • start

        public void start​(org.osgi.framework.BundleContext context)
        Specified by:
        start in interface org.osgi.framework.BundleActivator
      • stop

        public void stop​(org.osgi.framework.BundleContext context)
        Specified by:
        stop in interface org.osgi.framework.BundleActivator
      • getBundleContext

        public final org.osgi.framework.BundleContext getBundleContext()
        Specified by:
        getBundleContext in interface PluginContext
      • getUri

        protected final String getUri()
      • publishFileSystem

        protected final void publishFileSystem​(String uriNamespace,
                                               String path)
        Publishes a directory of the server's file system.
        Parameters:
        path - An absolute path to a directory.