org.apache.felix.moduleloader
Class ModuleEvent

java.lang.Object
  extended by java.util.EventObject
      extended by 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:
ModuleFactoryImpl, ModuleImpl, ModuleListener, Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ModuleEvent(IModuleFactory factory, 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
 

Constructor Detail

ModuleEvent

public ModuleEvent(IModuleFactory factory,
                   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.
Method Detail

getModule

public IModule getModule()

Returns the module that is the subject of the event.

Returns:
the module that is the subject of the event.