biz.hammurapi.jms.adapter
Interface LocalDelegate

All Known Implementing Classes:
MapLocalDelegate

public interface LocalDelegate

Local calls are routed to instances of this interface.

Author:
Pavel

Method Summary
 java.lang.Object getState()
          Local state to be sent to JMS as part of method invocation.
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args, Method jmsMethod)
          All proxy calls are routed to this method.
 void setState(java.lang.Object state)
           
 

Method Detail

getState

java.lang.Object getState()
Local state to be sent to JMS as part of method invocation.

Returns:

setState

void setState(java.lang.Object state)
Parameters:
state - Local state.

invoke

java.lang.Object invoke(java.lang.Object proxy,
                        java.lang.reflect.Method method,
                        java.lang.Object[] args,
                        Method jmsMethod)
                        throws java.lang.Throwable
All proxy calls are routed to this method. For local calls the last parameter is null. LocalDelegate doesn't have to chain-invoke jmsMethod for remote calls. E.g. it may cache return values from previous calls.

Parameters:
proxy - Proxy instance
method - Method
args - Method arguments
jmsMethod - Remote method. Null for local method calls. If jmsMethod is asynchronous, local delgate can execute is synchronously or asynchronously at its discretion.
Returns:
Method return value.
Throws:
java.lang.Throwable


Copyright © 2006 Hammurapi Group. All Rights Reserved.