Package com.install4j.api.events
Class InstallerDirectoryEvent
- java.lang.Object
-
- java.util.EventObject
-
- com.install4j.api.events.InstallerEvent
-
- com.install4j.api.events.InstallerDirectoryEvent
-
- All Implemented Interfaces:
java.io.Serializable
public class InstallerDirectoryEvent extends InstallerEvent
The event object that is passed to installer event listeners for the directory creation event. Event listeners are registered in theInstallerContext
.This event object contains additional information about the installed file. The event type
EventType.DIRECTORY_CREATED
produces this event object when fired.
-
-
Constructor Summary
Constructors Constructor Description InstallerDirectoryEvent(java.lang.Object source, Context context, EventType type, boolean success, java.io.File directory)
The constructor is called by the framework.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.File
getDirectory()
Get the created directory 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, setContext, wasSuccessful
-
-
-
-
Constructor Detail
-
InstallerDirectoryEvent
public InstallerDirectoryEvent(java.lang.Object source, Context context, EventType type, boolean success, java.io.File directory)
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 successfuldirectory
- the installed file
-
-
Method Detail
-
getDirectory
public java.io.File getDirectory()
Get the created directory that is associated with this event.- Returns:
- the file
-
toString
public java.lang.String toString()
- Overrides:
toString
in classInstallerEvent
-
getVerbose
public java.lang.String getVerbose()
Description copied from class:InstallerEvent
Return a verbose description of this event.- Overrides:
getVerbose
in classInstallerEvent
- Returns:
- the description
-
-