org.ungoverned.moduleloader
Class ModuleEvent
java.lang.Object
java.util.EventObject
org.ungoverned.moduleloader.ModuleEvent
- All Implemented Interfaces:
- java.io.Serializable
- public class ModuleEvent
- extends java.util.EventObject
This is an event class that is used by the ModuleManager to
indicate when modules are added, removed, or reset. To receive these
events, a ModuleListener must be added to the ModuleManager
instance.
- See Also:
ModuleManager
,
Module
,
ModuleListener
,
Serialized Form
Fields inherited from class java.util.EventObject |
source |
Constructor Summary |
ModuleEvent(ModuleManager mgr,
Module module)
Constructs a module event with the specified ModuleManager
as the event source and the specified module as the subject of
the event. |
Method Summary |
Module |
getModule()
Returns the module that is the subject of the event. |
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ModuleEvent
public ModuleEvent(ModuleManager mgr,
Module module)
Constructs a module event with the specified ModuleManager
as the event source and the specified module as the subject of
the event.
- Parameters:
mgr
- the source of the event.module
- the subject of the event.
getModule
public Module getModule()
Returns the module that is the subject of the event.
- Returns:
- the module that is the subject of the event.