Package com.adobe.cq.upgradesexecutor
Class Activator
- java.lang.Object
-
- com.adobe.cq.upgradesexecutor.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)
-
-
-
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
-
-
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 interfaceorg.osgi.framework.BundleActivator
- Throws:
java.lang.Exception
-
stop
public void stop(org.osgi.framework.BundleContext context) throws java.lang.Exception
- Specified by:
stop
in interfaceorg.osgi.framework.BundleActivator
- Throws:
java.lang.Exception
-
-