com.atlassian.greenhopper
Class Launcher
java.lang.Object
com.atlassian.greenhopper.global.AbstractLoggable
com.atlassian.greenhopper.Launcher
- All Implemented Interfaces:
- com.atlassian.sal.api.lifecycle.LifecycleAware
public class Launcher
- extends AbstractLoggable
- implements com.atlassian.sal.api.lifecycle.LifecycleAware
This is the main entry point for GreenHopper. All initialisation should take place here.
We can't listen to PluginDisableEvent, because these happen after the Spring context has already been destroyed.
- Author:
- ahennecke
Method Summary |
void |
onClearCache(com.atlassian.jira.event.ClearCacheEvent clearCacheEvent)
Called when JIRA restores data but does NOT re-start the plugin system
This is done as an optimisation for functional testing but it can trip you up if you are retaining state. |
void |
onPluginStarted(com.atlassian.plugin.event.events.PluginEnabledEvent pluginEnabledEvent)
|
void |
onSpringContextStarted()
First event in the lifecycle: Spring context comes up. |
void |
onSpringContextStopped()
Third event we're interested in: The Spring context shuts down. |
void |
onStart()
Second event in the lifecycle: System runs (this comes after the plugin framework events) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Launcher
public Launcher()
onSpringContextStarted
@PostConstruct
public void onSpringContextStarted()
- First event in the lifecycle: Spring context comes up.
onStart
public void onStart()
- Second event in the lifecycle: System runs (this comes after the plugin framework events)
- Specified by:
onStart
in interface com.atlassian.sal.api.lifecycle.LifecycleAware
onClearCache
@EventListener
public final void onClearCache(com.atlassian.jira.event.ClearCacheEvent clearCacheEvent)
- Called when JIRA restores data but does NOT re-start the plugin system
This is done as an optimisation for functional testing but it can trip you up if you are retaining state.
- Parameters:
clearCacheEvent
- empty event which is not of much use to propagate.
onPluginStarted
@EventListener
public final void onPluginStarted(com.atlassian.plugin.event.events.PluginEnabledEvent pluginEnabledEvent)
onSpringContextStopped
@PreDestroy
public void onSpringContextStopped()
- Third event we're interested in: The Spring context shuts down.
Copyright © 2007-2013 Atlassian. All Rights Reserved.