org.apache.felix.moduleloader
Class ModuleEvent
java.lang.Object
java.util.EventObject
org.apache.felix.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:
org.apache.felix.moduleloader.ModuleFactoryImpl
,
org.apache.felix.moduleloader.ModuleImpl
,
org.apache.felix.moduleloader.ModuleListener
,
Serialized Form
Fields inherited from class java.util.EventObject |
source |
Constructor Summary |
ModuleEvent(IModule 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 |
IModule |
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(IModule 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 IModule getModule()
Returns the module that is the subject of the event.
- Returns:
- the module that is the subject of the event.
Copyright © 2006-2009 The Apache Software Foundation. All Rights Reserved.