01: /*
02: * $Id: RmiAble.java 10489 2008-01-23 17:53:38Z dfeist $
03: * --------------------------------------------------------------------------------------
04: * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com
05: *
06: * The software in this package is published under the terms of the CPAL v1.0
07: * license, a copy of which has been included with this distribution in the
08: * LICENSE.txt file.
09: */
10:
11: package org.mule.transport.rmi;
12:
13: /**
14: * A callback proxy for binding a RmiMessage receiver to a Remote object
15: */
16:
17: public interface RmiAble {
18: /**
19: * Set Mule receiver as parameter for callback
20: *
21: * @param receiver
22: */
23: public void setReceiver(RmiMessageReceiver receiver);
24:
25: /**
26: * Implementing method should route message back to Mule receiver and receive
27: * possible reply for program that calls this Receiver
28: *
29: * @param message from calling program
30: * @return possible reply from Mule to be routed back to calling program as
31: * method result
32: */
33: public Object route(Object message);
34: }
|