Class WarUrlActivator

  • All Implemented Interfaces:
    org.osgi.framework.BundleActivator

    public class WarUrlActivator
    extends java.lang.Object
    implements org.osgi.framework.BundleActivator
    Register the factory to handle the war scheme specified by rfc66 when the bundle is activated.
    • Constructor Summary

      Constructors 
      Constructor Description
      WarUrlActivator()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void start​(org.osgi.framework.BundleContext context)
      Register the url stream handler factory.
      void stop​(org.osgi.framework.BundleContext context)
      Remove the url stream handler.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WarUrlActivator

        public WarUrlActivator()
    • Method Detail

      • start

        public void start​(org.osgi.framework.BundleContext context)
                   throws java.lang.Exception
        Register the url stream handler factory.
        Specified by:
        start in interface org.osgi.framework.BundleActivator
        Parameters:
        context - the BundleContext to use
        Throws:
        java.lang.Exception
      • stop

        public void stop​(org.osgi.framework.BundleContext context)
                  throws java.lang.Exception
        Remove the url stream handler. (probably not required, as osgi might shutdown every registered service by default: need test)
        Specified by:
        stop in interface org.osgi.framework.BundleActivator
        Throws:
        java.lang.Exception