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
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:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
-
Method Summary
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
Methods inherited from class java.util.EventObject
getSource
-
Constructor Details
-
AddonInstalledEvent
Creates a new event.- Parameters:
source
- the object on which the event initially occurred (nevernull
)host
- the host for which the event occurred
-
-
Method Details
-
getHost
Returns the host for which the event occurred.- Returns:
- the Atlassian host
-
toString
- Overrides:
toString
in classEventObject
-