Class OSGiActivator.WithState

  • All Implemented Interfaces:
    org.osgi.framework.BundleActivator
    Enclosing class:
    OSGiActivator

    public abstract static class OSGiActivator.WithState
    extends OSGiActivator
    An OSGi activator that stores bundle state between sessions.
    Since:
    3.1
    Author:
    Eike Stepper
    • Constructor Detail

      • WithState

        public WithState​(OMBundle bundle)
    • Method Detail

      • doStart

        protected final void doStart()
                              throws java.lang.Exception
        Overrides:
        doStart in class OSGiActivator
        Throws:
        java.lang.Exception
      • doStop

        protected final void doStop()
                             throws java.lang.Exception
        Overrides:
        doStop in class OSGiActivator
        Throws:
        java.lang.Exception
      • doStartWithState

        protected abstract void doStartWithState​(java.lang.Object state)
                                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • doStopWithState

        protected abstract java.lang.Object doStopWithState()
                                                     throws java.lang.Exception
        Throws:
        java.lang.Exception