Package com.atlassian.connect.spring
Class AddonInstalledEvent
- java.lang.Object
-
- java.util.EventObject
-
- org.springframework.context.ApplicationEvent
-
- com.atlassian.connect.spring.AddonInstalledEvent
-
- All Implemented Interfaces:
Serializable
public class AddonInstalledEvent extends ApplicationEvent
A Spring application event fired when the add-on has been successfully installed on a host.To listen to this event, use the
EventListener
annotation:@EventListener public void addonInstalled(AddonInstalledEvent event) { ... }
NOTE: This event is fired asynchronously and cannot affect the HTTP response returned to the Atlassian host.
- Since:
- 1.0.0
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description AddonInstalledEvent(Object source, AtlassianHost host)
Creates a new event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AtlassianHost
getHost()
Returns the host for which the event occurred.String
toString()
-
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
-
Methods inherited from class java.util.EventObject
getSource
-
-
-
-
Constructor Detail
-
AddonInstalledEvent
public AddonInstalledEvent(Object source, AtlassianHost host)
Creates a new event.- Parameters:
source
- the object on which the event initially occurred (nevernull
)host
- the host for which the event occurred
-
-
Method Detail
-
getHost
public AtlassianHost getHost()
Returns the host for which the event occurred.- Returns:
- the Atlassian host
-
toString
public String toString()
- Overrides:
toString
in classEventObject
-
-