Class Activator

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

    public class Activator
    extends java.lang.Object
    implements org.osgi.framework.BundleActivator
    Run CodeUpgradeTasks, synchronously in the Activator.start() method
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String FORCE_UPGRADES_PATH
      If this property is true, upgrades execute whatever the StartupMode is.
    • Constructor Summary

      Constructors 
      Constructor Description
      Activator()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void start​(org.osgi.framework.BundleContext context)
      When this bundle starts, execute all available CodeUpgradeTasks if StartupMode is UPDATE.
      void stop​(org.osgi.framework.BundleContext context)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • FORCE_UPGRADES_PATH

        public static final java.lang.String FORCE_UPGRADES_PATH
        If this property is true, upgrades execute whatever the StartupMode is. Useful for troubleshooting the upgrade code.
        See Also:
        Constant Field Values
    • Constructor Detail

      • Activator

        public Activator()
    • Method Detail

      • start

        public void start​(org.osgi.framework.BundleContext context)
                   throws java.lang.Exception
        When this bundle starts, execute all available CodeUpgradeTasks if StartupMode is UPDATE.
        Specified by:
        start in interface org.osgi.framework.BundleActivator
        Throws:
        java.lang.Exception
      • stop

        public void stop​(org.osgi.framework.BundleContext context)
                  throws java.lang.Exception
        Specified by:
        stop in interface org.osgi.framework.BundleActivator
        Throws:
        java.lang.Exception