|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface EventControllerContext
| Field Summary | |
|---|---|
static int |
CONSUMED_EVENT_FLOODED
. |
static int |
EVENT_CONSUMER_INFO_NOT_AVAILABLE
. |
static int |
EVENT_CONSUMER_NOT_AVAILABLE
. |
static int |
EVENT_PRODUCER_INFO_NOT_AVAILABLE
. |
static int |
EVENT_PRODUCER_NOT_AVAILABLE
. |
static int |
PORTLET_DOES_NOT_CONSUME_EVENT
. |
static int |
PRODUCED_EVENT_FLOODED
. |
| Method Summary | |
|---|---|
void |
eventConsumed(EventPhaseContext context,
PortletWindowEvent consumedEvent,
PortletInvocationResponse consumerResponse)
Context call back when an event is consumed by a portlet. |
void |
eventDiscarded(EventPhaseContext context,
PortletWindowEvent discardedEvent,
int cause)
Context call back when an event is discarded by the controller for a specific reason. |
void |
eventFailed(EventPhaseContext context,
PortletWindowEvent failedEvent,
java.lang.Throwable throwable)
Context call back when an event failed to be delivered because the invoker threw an exception. |
void |
eventProduced(EventPhaseContext context,
PortletWindowEvent producedEvent,
PortletWindowEvent sourceEvent)
Context call back when an event is produced. |
| Field Detail |
|---|
static final int EVENT_PRODUCER_NOT_AVAILABLE
static final int EVENT_PRODUCER_INFO_NOT_AVAILABLE
static final int EVENT_CONSUMER_NOT_AVAILABLE
static final int EVENT_CONSUMER_INFO_NOT_AVAILABLE
static final int PORTLET_DOES_NOT_CONSUME_EVENT
static final int CONSUMED_EVENT_FLOODED
static final int PRODUCED_EVENT_FLOODED
| Method Detail |
|---|
void eventProduced(EventPhaseContext context,
PortletWindowEvent producedEvent,
PortletWindowEvent sourceEvent)
Context call back when an event is produced. The session argument gives to the context the capability to queue events in response of the produced event or to interrupt the session. It has also access to the full history of distributed events in order to provide advanced implementation of event cycle detection.
During the invocation of this method, any runtime exception thrown will signal a failure and the produced event will be discarded although the event distribution will continue.
During the invocation of this method, any error thrown will be propagated to the portlet controller invoker.
context - the sessionproducedEvent - the produced eventsourceEvent - the source event
void eventConsumed(EventPhaseContext context,
PortletWindowEvent consumedEvent,
PortletInvocationResponse consumerResponse)
Context call back when an event is consumed by a portlet. The session argument only provides querying capabilities and it is not possible to queue event or interrupt the session.
During the invocation of this method, any runtime exception thrown will be ignored by the controller.
During the invocation of this method, any error thrown will be propagated to the portlet controller invoker.
context - the sessionconsumedEvent - the consumed eventconsumerResponse - the consumer response
void eventFailed(EventPhaseContext context,
PortletWindowEvent failedEvent,
java.lang.Throwable throwable)
Context call back when an event failed to be delivered because the invoker threw an exception. The session argument only provides querying capabilities and it is not possible to queue event or interrupt the session.
During the invocation of this method, any runtime exception thrown will be ignored by the controller.
During the invocation of this method, any error thrown will be propagated to the portlet controller invoker.
context - the sessionfailedEvent - the failed eventthrowable - the throwable
void eventDiscarded(EventPhaseContext context,
PortletWindowEvent discardedEvent,
int cause)
Context call back when an event is discarded by the controller for a specific reason. The session argument only provides querying capabilities and it is not possible to queue event or interrupt the session.
The cause value is an integer among the constants
CONSUMED_EVENT_FLOODEDEVENT_CONSUMER_INFO_NOT_AVAILABLEEVENT_CONSUMER_NOT_AVAILABLEEVENT_PRODUCER_INFO_NOT_AVAILABLEEVENT_PRODUCER_NOT_AVAILABLEPORTLET_DOES_NOT_CONSUME_EVENTPRODUCED_EVENT_FLOODEDDuring the invocation of this method, any runtime exception thrown will be ignored by the controller.
During the invocation of this method, any error thrown will be propagated to the portlet controller invoker.
context - the sessiondiscardedEvent - the discarded eventcause - the cause
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||