2.17.2: 2011-06-17

net.sf.basedb.util.extensions.events
Class EventType

java.lang.Object
  extended by net.sf.basedb.util.extensions.events.EventType

public class EventType
extends Object

Represents different types of event. Some event types has been defined as static members of this class. External applications can create their own event types and send to registered extensions by calling Registry.handleEvent(EventType, ExtensionPoint, Extension).

Version:
2.8
Author:
nicklas
Last modified
$Date: 2008-09-11 22:08:14 +0200 (Thu, 11 Sep 2008) $

Field Summary
static EventType AFTER_REGISTRATION
          This event is sent after an extension or extension point has been registered with a registry.
static EventType AFTER_UPDATE
          This event is sent during an update of an existing extension point or extension.
static EventType BEFORE_UNREGISTRATION
          This event is sent before an extension point or extension is unregistered.
static EventType BEFORE_UPDATE
          This event is sent during an update of an existing extension point or extension.
private  String name
           
 
Constructor Summary
EventType(String name)
          Create a new event type.
 
Method Summary
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

AFTER_REGISTRATION

public static final EventType AFTER_REGISTRATION
This event is sent after an extension or extension point has been registered with a registry.


BEFORE_UPDATE

public static final EventType BEFORE_UPDATE
This event is sent during an update of an existing extension point or extension. The arguments to the EventHandler.handleEvent(EventType, ExtensionPoint, Extension) method is the currently registered extension point and extension. This event will be followed by AFTER_UPDATE.


AFTER_UPDATE

public static final EventType AFTER_UPDATE
This event is sent during an update of an existing extension point or extension. The arguments to the EventHandler.handleEvent(EventType, ExtensionPoint, Extension) method is the new extension point and extension. This event is preceeded by BEFORE_UPDATE.


BEFORE_UNREGISTRATION

public static final EventType BEFORE_UNREGISTRATION
This event is sent before an extension point or extension is unregistered.


name

private final String name
Constructor Detail

EventType

public EventType(String name)
Create a new event type.

Parameters:
name - A display name to use in the toString() method
Method Detail

toString

public String toString()
Overrides:
toString in class Object

2.17.2: 2011-06-17