|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.seam.core.Events
@Scope(value=EVENT) @BypassInterceptors @Name(value="org.jboss.seam.core.events") @Install(precedence=0) public class Events
Support for Seam component-driven events
Constructor Summary | |
---|---|
Events()
|
Method Summary | |
---|---|
void |
addListener(String type,
String methodBindingExpression,
Class... argTypes)
Add a new listener for a given event type |
static boolean |
exists()
|
protected Dispatcher |
getDispatcher()
|
static Events |
instance()
|
void |
raiseAsynchronousEvent(String type,
Object... parameters)
Raise an event that is to be processed asynchronously |
void |
raiseEvent(String type,
Object... parameters)
Raise an event that is to be processed synchronously |
void |
raiseTimedEvent(String type,
Schedule schedule,
Object... parameters)
Raise an event that is to be processed according to a "schedule" |
void |
raiseTransactionCompletionEvent(String type,
Object... parameters)
Raise an event that is to be processed after the current transaction ends |
void |
raiseTransactionSuccessEvent(String type,
Object... parameters)
Raise an event that is to be processed after successful completion of the current transaction |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Events()
Method Detail |
---|
public void addListener(String type, String methodBindingExpression, Class... argTypes)
type
- the event typemethodBindingExpression
- a method binding, expressed in ELargTypes
- the argument types of the method bindingpublic void raiseEvent(String type, Object... parameters)
type
- the event typeparameters
- parameters to be passes to the listener methodpublic void raiseAsynchronousEvent(String type, Object... parameters)
type
- the event typeparameters
- parameters to be passes to the listener methodpublic void raiseTimedEvent(String type, Schedule schedule, Object... parameters)
type
- the event typeschedule
- the schedule object, specific to the dispatcher strategyparameters
- parameters to be passes to the listener method(EJB, quartz or JDK timer service)
,
(quartz timer service only)
public void raiseTransactionSuccessEvent(String type, Object... parameters)
type
- the event typeparameters
- parameters to be passes to the listener methodpublic void raiseTransactionCompletionEvent(String type, Object... parameters)
type
- the event typeparameters
- parameters to be passes to the listener methodprotected Dispatcher getDispatcher()
public static boolean exists()
public static Events instance()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |