UIX 2.2.16

oracle.cabo.servlet.event
Class InvokeEventHandler

java.lang.Object
  |
  +--oracle.cabo.servlet.event.AbstractDataEventHandler
        |
        +--oracle.cabo.servlet.event.InvokeEventHandler
All Implemented Interfaces:
EventHandler

public final class InvokeEventHandler
extends AbstractDataEventHandler

Invokes a method


Inner Class Summary
static class InvokeEventHandler.MethodParameter
          This class combines a parameter type with its value.
 
Constructor Summary
InvokeEventHandler()
           
 
Method Summary
 EventResult doHandleEvent(BajaContext bContext, Page page, PageEvent event)
          Handle an event.
protected  void init()
          Called after this bean is constructed (and all its properties set) so that it may complete its initialization
 void setExceptionBinding(BoundValue value)
           
 void setInstanceBinding(BoundValue value)
           
 void setJavaType(java.lang.String value)
           
 void setMethod(java.lang.String value)
           
 void setParameters(InvokeEventHandler.MethodParameter[] params)
           
 void setResultBinding(BoundValue value)
           
 
Methods inherited from class oracle.cabo.servlet.event.AbstractDataEventHandler
getAttributeInternal, getAttributeValue, getAttributeValue, getPageEvent, getRenderingContext, handleEvent, postHandleEvent, preHandleEvent, setAttributeBinding, setAttributeInternal, setAttributeValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InvokeEventHandler

public InvokeEventHandler()
Method Detail

doHandleEvent

public EventResult doHandleEvent(BajaContext bContext,
                                 Page page,
                                 PageEvent event)
                          throws java.lang.Throwable
Description copied from class: AbstractDataEventHandler
Handle an event. Clients return an EventResult object that encapsulates the resulsts. If handleEvent() returns null, the PageBroker will simply redisplay the same page. Otherwise, the result will be passed to the PageFlowEngine to determine the Page to render.

Clients should implement this method, instead of handleEvent, to perform the actual event handling logic.

Note: while the Page object is mutable, any calls that set properties, etc., will be ignored unless the Page is itself returned inside the EventResult.

Overrides:
doHandleEvent in class AbstractDataEventHandler
Following copied from class: oracle.cabo.servlet.event.AbstractDataEventHandler
Parameters:
context - the BajaContext
page - the page the client is requesting
event - the event on that page, or null if the client is just requesting a page display
Returns:
an object encapsulating results of this event
Throws:
java.lang.Throwable - if any processing of the event fails

setParameters

public void setParameters(InvokeEventHandler.MethodParameter[] params)

setResultBinding

public void setResultBinding(BoundValue value)

setExceptionBinding

public void setExceptionBinding(BoundValue value)

setMethod

public void setMethod(java.lang.String value)

setJavaType

public void setJavaType(java.lang.String value)
                 throws java.lang.ClassNotFoundException

setInstanceBinding

public void setInstanceBinding(BoundValue value)

init

protected void init()
Called after this bean is constructed (and all its properties set) so that it may complete its initialization

UIX 2.2.16