Package com.install4j.api.events
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
The event object that is passed to installer event listeners.
Event listeners are registered in the
InstallerContext.- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionInstallerEvent(Object source, Context context, EventType type) The constructor is called by the framework.InstallerEvent(Object source, Context context, EventType type, boolean success) The constructor is called by the framework. -
Method Summary
Modifier and TypeMethodDescriptionGet the context.getType()Get the type of the event.Return a verbose description of this event.voidsetContext(Context context) toString()booleanReturn whether the operation associated with the event was successfulMethods inherited from class java.util.EventObject
getSource
-
Constructor Details
-
InstallerEvent
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
-
InstallerEvent
The constructor is called by the framework.- Parameters:
source- the event sourcecontext- the contexttype- the event type.
-
-
Method Details
-
getType
Get the type of the event.- Returns:
- the type
-
getContext
Get the context.- Returns:
- the context.
-
setContext
-
wasSuccessful
public boolean wasSuccessful()Return whether the operation associated with the event was successful- Returns:
trueorfalse.
-
toString
- Overrides:
toStringin classEventObject
-
getVerbose
Return a verbose description of this event.- Returns:
- the description
-