javax.rad.server
Interface ICallHandler


public interface ICallHandler

The ICallHandler allows listening on remote calls and offers an invokeLater mechanism like on UI side.


Method Summary
 CallEventHandler<IAfterCallListener> eventAfterCall()
          Gets the handler for "after call" events.
 CallEventHandler<IAfterLastCallListener> eventAfterLastCall()
          Gets the handler for "after last call" events.
 CallEventHandler<IBeforeCallListener> eventBeforeCall()
          Gets the handler for "before call" events.
 CallEventHandler<IBeforeFirstCallListener> eventBeforeFirstCall()
          Gets the handler for "before first call" events.
 void invokeAfterCall(java.lang.Object pObject, java.lang.String pMethod)
          Adds an operation to the "after call" queue.
 void invokeAfterCall(java.lang.Runnable pRunnable)
          Adds an operation to the "after call" queue.
 void invokeAfterLastCall(java.lang.Object pObject, java.lang.String pMethod)
          Adds an operation to the "after last call" queue.
 void invokeAfterLastCall(java.lang.Runnable pRunnable)
          Adds an operation to the "after last call" queue.
 void invokeFinally(java.lang.Object pObject, java.lang.String pMethod)
          Adds an operation to the invokeFinally queue.
 void invokeFinally(java.lang.Runnable pRunnable)
          Adds an operation to the invokeFinally queue.
 

Method Detail

eventBeforeFirstCall

CallEventHandler<IBeforeFirstCallListener> eventBeforeFirstCall()
Gets the handler for "before first call" events.

Returns:
the event handler

eventAfterLastCall

CallEventHandler<IAfterLastCallListener> eventAfterLastCall()
Gets the handler for "after last call" events.

Returns:
the event handler

eventBeforeCall

CallEventHandler<IBeforeCallListener> eventBeforeCall()
Gets the handler for "before call" events.

Returns:
the event handler

eventAfterCall

CallEventHandler<IAfterCallListener> eventAfterCall()
Gets the handler for "after call" events.

Returns:
the event handler

invokeAfterCall

void invokeAfterCall(java.lang.Runnable pRunnable)
Adds an operation to the "after call" queue. Such operations will be automatically executed after a call.

Parameters:
pRunnable - the operation

invokeAfterCall

void invokeAfterCall(java.lang.Object pObject,
                     java.lang.String pMethod)
Adds an operation to the "after call" queue. Such operations will be automatically executed after a call.

Parameters:
pObject - the object which contains the operation
pMethod - the operation method

invokeAfterLastCall

void invokeAfterLastCall(java.lang.Runnable pRunnable)
Adds an operation to the "after last call" queue. Such operations will be automatically executed after the last call.

Parameters:
pRunnable - the operation

invokeAfterLastCall

void invokeAfterLastCall(java.lang.Object pObject,
                         java.lang.String pMethod)
Adds an operation to the "after last call" queue. Such operations will be automatically executed after the last call.

Parameters:
pObject - the object which contains the operation
pMethod - the operation method

invokeFinally

void invokeFinally(java.lang.Runnable pRunnable)
Adds an operation to the invokeFinally queue. Such operations will be automatically executed after the last call and after all invokeLater operations.

Parameters:
pRunnable - the operation

invokeFinally

void invokeFinally(java.lang.Object pObject,
                   java.lang.String pMethod)
Adds an operation to the invokeFinally queue. Such operations will be automatically executed after the last call and after all invokeLater operations.

Parameters:
pObject - the object which contains the operation
pMethod - the operation method


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.