org.jboss.seam.core
@Scope(value=EVENT) @BypassInterceptors @Name(value="org.jboss.seam.core.events") @Install(precedence=0) public class Events extends Object
| Constructor and Description |
|---|
Events() |
| Modifier and Type | Method and Description |
|---|---|
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
|
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()
Copyright © 2015 Seam Framework. All Rights Reserved.