|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.groiss.event.EventManager
public class EventManager
The event-manager allows registrating for events, unregistrating, and raising events.
| Field Summary | |
|---|---|
static int |
CURRENT_TX
|
static int |
NEW_TX
|
| Constructor Summary | |
|---|---|
EventManager()
|
|
| Method Summary | |
|---|---|
static void |
raiseEvent(Event e,
int txtype)
Raises an event. |
static long |
register(java.lang.String name,
java.lang.Class eh,
java.lang.Object context)
Register an event handler |
static long |
register(java.lang.String name,
java.lang.Class eh,
java.lang.Object context,
ActivityInstance registrant)
Register an event handler |
static void |
unregister(long oid)
unregister an event handler |
static void |
unregister(java.lang.String name,
ProcessInstance registrant)
unregister an event handler |
static void |
unregisterAll(ProcessInstance registrant)
unregister all event handlers of a process |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int CURRENT_TX
public static final int NEW_TX
| Constructor Detail |
|---|
public EventManager()
| Method Detail |
|---|
public static void raiseEvent(Event e,
int txtype)
throws java.lang.Exception
e - the eventtxtype - for future use, ignored
java.lang.Exception
public static long register(java.lang.String name,
java.lang.Class eh,
java.lang.Object context)
throws java.lang.Exception
name - the name of the eventeh - the class of the eventhandler, must be a subclass of EventHandlercontext - a context object
java.lang.Exception
public static long register(java.lang.String name,
java.lang.Class eh,
java.lang.Object context,
ActivityInstance registrant)
throws java.lang.Exception
name - the name of the eventeh - the class of the eventhandler, must be a subclass of EventHandlercontext - a context objectregistrant - an activity of te registering process instance, or the process instance itself
java.lang.Exception
public static void unregister(long oid)
throws java.lang.Exception
java.lang.Exception
public static void unregister(java.lang.String name,
ProcessInstance registrant)
throws java.lang.Exception
name - the event nameregistrant - the process which registered (may be null)
java.lang.Exception
public static void unregisterAll(ProcessInstance registrant)
throws java.lang.Exception
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||