Package com.install4j.api.events
Class InstallerEvent
- java.lang.Object
-
- java.util.EventObject
-
- com.install4j.api.events.InstallerEvent
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
InstallerActionEvent,InstallerDirectoryEvent,InstallerDownloadEvent,InstallerFileEvent,InstallerFileInstallationEvent,InstallerVariableEvent
public class InstallerEvent extends java.util.EventObjectThe event object that is passed to installer event listeners. Event listeners are registered in theInstallerContext.
-
-
Constructor Summary
Constructors Constructor Description InstallerEvent(java.lang.Object source, Context context, EventType type)The constructor is called by the framework.InstallerEvent(java.lang.Object source, Context context, EventType type, boolean success)The constructor is called by the framework.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContextgetContext()Get the context.EventTypegetType()Get the type of the event.java.lang.StringgetVerbose()Return a verbose description of this event.voidsetContext(Context context)java.lang.StringtoString()booleanwasSuccessful()Return whether the operation associated with the event was successful
-
-
-
Constructor Detail
-
InstallerEvent
public InstallerEvent(java.lang.Object source, Context context, EventType type, boolean success)The constructor is called by the framework.- Parameters:
source- the event sourcecontext- the contexttype- the event type.success- whether the operation associated with the event was successful
-
-
Method Detail
-
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:
trueorfalse.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.util.EventObject
-
getVerbose
public java.lang.String getVerbose()
Return a verbose description of this event.- Returns:
- the description
-
-