Class AddonUninstalledEvent

java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
com.atlassian.connect.spring.AddonUninstalledEvent
All Implemented Interfaces:
Serializable

public class AddonUninstalledEvent extends ApplicationEvent
A Spring application event fired when the add-on has been successfully uninstalled from a host.

To listen to this event, use the EventListener annotation:

 @EventListener
 public void addonUninstalled(AddonUninstalledEvent event) {
     ...
 }

NOTE: This event is fired asynchronously and cannot affect the HTTP response returned to the Atlassian host.

Since:
1.0.0
See Also:
  • Constructor Details

    • AddonUninstalledEvent

      public AddonUninstalledEvent(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 Details

    • getHost

      public AtlassianHost getHost()
      Returns the host for which the event occurred.
      Returns:
      the Atlassian host
    • toString

      public String toString()
      Overrides:
      toString in class EventObject