java.lang.Objectjava.util.EventObject
com.install4j.api.events.InstallerEvent
com.install4j.api.events.InstallerFileEvent
public class InstallerFileEvent
The event object that is passed to installer event listeners for file installation event types.
Event listeners are registered in the InstallerContext.
This event object contains additional information about the installed file.
The event types EventType.BEFORE_INSTALL_FILE and EventType.AFTER_INSTALL_FILE
produce this event object when fired.
InstallerEventListener,
Context.addInstallerEventListener(InstallerEventListener),
Serialized Form| Field Summary |
|---|
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
InstallerFileEvent(java.lang.Object source,
Context context,
EventType type,
boolean success,
java.io.File destinationFile)
The constructor is called by the framework. |
|
| Method Summary | |
|---|---|
java.io.File |
getDestinationFile()
Get the installed file location that is associated with this event. |
java.lang.String |
getVerbose()
Return a verbose description of this event. |
java.lang.String |
toString()
|
| Methods inherited from class com.install4j.api.events.InstallerEvent |
|---|
getContext, getType, wasSuccessful |
| 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 InstallerFileEvent(java.lang.Object source,
Context context,
EventType type,
boolean success,
java.io.File destinationFile)
source - the event sourcecontext - the contexttype - the event type.success - whether the operation associated with the event was successfuldestinationFile - the installed file| Method Detail |
|---|
public java.io.File getDestinationFile()
public java.lang.String toString()
toString in class InstallerEventpublic java.lang.String getVerbose()
InstallerEvent
getVerbose in class InstallerEvent