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:
Serializable
The event object that is passed to installer event listeners for the directory creation event.
Event listeners are registered in the
InstallerContext
.
This event object contains additional information about the installed file.
The event type EventType.DIRECTORY_CREATED
produces this event object when fired.
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionInstallerDirectoryEvent
(Object source, Context context, EventType type, boolean success, File directory) The constructor is called by the framework. -
Method Summary
Modifier and TypeMethodDescriptionGet the created directory that is associated with this event.Return a verbose description of this event.toString()
Methods inherited from class com.install4j.api.events.InstallerEvent
getContext, getType, setContext, wasSuccessful
Methods inherited from class java.util.EventObject
getSource
-
Constructor Details
-
InstallerDirectoryEvent
public InstallerDirectoryEvent(Object source, Context context, EventType type, boolean success, 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 Details
-
getDirectory
Get the created directory that is associated with this event.- Returns:
- the file
-
toString
- Overrides:
toString
in classInstallerEvent
-
getVerbose
Description copied from class:InstallerEvent
Return a verbose description of this event.- Overrides:
getVerbose
in classInstallerEvent
- Returns:
- the description
-