Class AddonEventFactory

  • All Implemented Interfaces:
    EventFactory

    public class AddonEventFactory
    extends AbstractEventFactory
    This is an EventFactory for creating add-on events. The following event types are supported by this factory: AddonEventFactory#TYPE
    Author:
    Kai Kreuzer - Initial contribution
    • Constructor Detail

      • AddonEventFactory

        public AddonEventFactory()
        Constructs a new AddonEventFactory.
    • Method Detail

      • createAddonInstalledEvent

        public static AddonEvent createAddonInstalledEvent​(String id)
        Creates an "add-on installed" event.
        Parameters:
        id - the id of the installed add-on
        Returns:
        the according event
      • createAddonUninstalledEvent

        public static AddonEvent createAddonUninstalledEvent​(String id)
        Creates an "add-on uninstalled" event.
        Parameters:
        id - the id of the uninstalled add-on
        Returns:
        the according event
      • createAddonFailureEvent

        public static AddonEvent createAddonFailureEvent​(String id,
                                                         String msg)
        Creates an "add-on failure" event.
        Parameters:
        id - the id of the add-on that caused a failure
        msg - the message text of the failure
        Returns:
        the according event