Class ExtensionEventFactory

  • All Implemented Interfaces:
    EventFactory

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

      • ExtensionEventFactory

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

      • createExtensionInstalledEvent

        public static ExtensionEvent createExtensionInstalledEvent​(String id)
        Creates an "extension installed" event.
        Parameters:
        id - the id of the installed extension
        Returns:
        the according event
      • createExtensionUninstalledEvent

        public static ExtensionEvent createExtensionUninstalledEvent​(String id)
        Creates an "extension uninstalled" event.
        Parameters:
        id - the id of the uninstalled extension
        Returns:
        the according event
      • createExtensionFailureEvent

        public static ExtensionEvent createExtensionFailureEvent​(String id,
                                                                 String msg)
        Creates an "extension failure" event.
        Parameters:
        id - the id of the extension that caused a failure
        msg - the message text of the failure
        Returns:
        the according event