Class InstallerEvent

java.lang.Object
java.util.EventObject
com.install4j.api.events.InstallerEvent
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
InstallerActionEvent, InstallerDirectoryEvent, InstallerDownloadEvent, InstallerFileEvent, InstallerFileInstallationEvent, InstallerVariableEvent

public class InstallerEvent extends EventObject
The event object that is passed to installer event listeners. Event listeners are registered in the InstallerContext.
See Also:
  • Constructor Details

    • InstallerEvent

      public InstallerEvent(Object source, Context context, EventType type, boolean success)
      The constructor is called by the framework.
      Parameters:
      source - the event source
      context - the context
      type - the event type.
      success - whether the operation associated with the event was successful
    • InstallerEvent

      public InstallerEvent(Object source, Context context, EventType type)
      The constructor is called by the framework.
      Parameters:
      source - the event source
      context - the context
      type - the event type.
  • Method Details

    • getType

      public EventType getType()
      Get the type of the event.
      Returns:
      the type
    • getContext

      public Context getContext()
      Get the context.
      Returns:
      the context.
    • setContext

      public void setContext(Context context)
    • wasSuccessful

      public boolean wasSuccessful()
      Return whether the operation associated with the event was successful
      Returns:
      true or false.
    • toString

      public String toString()
      Overrides:
      toString in class EventObject
    • getVerbose

      public String getVerbose()
      Return a verbose description of this event.
      Returns:
      the description