java.lang.Objectjava.util.EventObject
com.install4j.api.events.InstallerEvent
public class InstallerEvent
The event object that is passed to installer event listeners.
Event listeners are registered in the InstallerContext
.
InstallerEventListener
,
Context.addInstallerEventListener(InstallerEventListener)
,
Serialized FormField Summary |
---|
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
InstallerEvent(java.lang.Object source,
Context context,
EventType type,
boolean success)
The constructor is called by the framework. |
Method Summary | |
---|---|
Context |
getContext()
Get the context. |
EventType |
getType()
Get the type of the event. |
java.lang.String |
getVerbose()
Return a verbose description of this event. |
java.lang.String |
toString()
|
boolean |
wasSuccessful()
Return whether the operation associated with the event was successful |
Methods inherited from class java.util.EventObject |
---|
getSource |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public InstallerEvent(java.lang.Object source, Context context, EventType type, boolean success)
source
- the event sourcecontext
- the contexttype
- the event type.success
- whether the operation associated with the event was successfulMethod Detail |
---|
public EventType getType()
public Context getContext()
public boolean wasSuccessful()
public java.lang.String toString()
toString
in class java.util.EventObject
public java.lang.String getVerbose()