Class 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
    • Constructor Detail

      • AddonInstalledEvent

        public AddonInstalledEvent​(Object source,
                                   AtlassianHost host)
        Creates a new event.
        Parameters:
        source - the object on which the event initially occurred (never null)
        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