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.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionInstallerDirectoryEvent(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 associated with this event.Return a verbose description of this event.toString()Methods inherited from class com.install4j.api.events.InstallerEvent
getContext, getType, setContext, wasSuccessfulMethods 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 associated with this event.- Returns:
- the file
-
toString
- Overrides:
toStringin classInstallerEvent
-
getVerbose
Description copied from class:InstallerEventReturn a verbose description of this event.- Overrides:
getVerbosein classInstallerEvent- Returns:
- the description
-