org.ow2.kerneos.common.config
Class ApplicationEvent

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

public class ApplicationEvent
extends Object
implements Serializable

Application event used for communicate the arrival/departure of an application.

See Also:
Serialized Form

Field Summary
static String LOAD
          Load value.
static String UNLOAD
          Unload value.
 
Constructor Summary
ApplicationEvent()
          Create an empty module event.
ApplicationEvent(Application application, String eventType)
          Create a application event.
 
Method Summary
 String getEventType()
          Get the type of event.
 Application getModule()
          Get the instance of application associated with the event.
 void setApplication(Application application)
          Set the instance of application associated with the event.
 void setEventType(String type)
          Set the type of 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

ApplicationEvent

public ApplicationEvent()
Create an empty module event.


ApplicationEvent

public ApplicationEvent(Application application,
                        String eventType)
Create a application event.

Parameters:
application - is an instance of application 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 Application getModule()
Get the instance of application associated with the event.

Returns:
the instance of application

setApplication

public void setApplication(Application application)
Set the instance of application associated with the event.

Parameters:
application - is an instance of application 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.