org.ow2.kerneos.common.config
Class ModuleEvent

java.lang.Object
  extended by org.ow2.kerneos.common.config.ModuleEvent
All Implemented Interfaces:
Serializable

public class ModuleEvent
extends Object
implements Serializable

Module event used for communicate the arrival/departure of a module.

See Also:
Serialized Form

Field Summary
static String LOAD
          Load value.
static String UNLOAD
          Unload value.
 
Constructor Summary
ModuleEvent()
          Create an empty module event.
ModuleEvent(Module module, String eventType)
          Create a module event.
 
Method Summary
 String getEventType()
          Get the type of event.
 Module getModule()
          Get the instance of module associated with the event.
 void setEventType(String type)
          Set the type of event.
 void setModule(Module module)
          Set the instance of module associated with the event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOAD

public static final String LOAD
Load value.

See Also:
Constant Field Values

UNLOAD

public static final String UNLOAD
Unload value.

See Also:
Constant Field Values
Constructor Detail

ModuleEvent

public ModuleEvent()
Create an empty module event.


ModuleEvent

public ModuleEvent(Module module,
                   String eventType)
Create a module event.

Parameters:
module - is an instance of module associated with the event.
eventType - is the type of event associated with the module.
Method Detail

getEventType

public String getEventType()
Get the type of event.

Returns:
the eventType.

getModule

public Module getModule()
Get the instance of module associated with the event.

Returns:
the instance of module

setModule

public void setModule(Module module)
Set the instance of module associated with the event.

Parameters:
module - is an instance of module associated with the event.

setEventType

public void setEventType(String type)
Set the type of event.

Parameters:
type - is the type of event.


Copyright © 2013 OW2 Consortium. All Rights Reserved.