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
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 |
InvokeEventHandler
public InvokeEventHandler()
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 BajaContextpage
- the page the client is requestingevent
- 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