View Javadoc

1   /*
2    * $Id: UMONestedRouter.java 7963 2007-08-21 08:53:15Z dirk.olmes $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSource, Inc.  All rights reserved.  http://www.mulesource.com
5    *
6    * The software in this package is published under the terms of the CPAL v1.0
7    * license, a copy of which has been included with this distribution in the
8    * LICENSE.txt file.
9    */
10  
11  package org.mule.umo.routing;
12  
13  import org.mule.umo.MessagingException;
14  import org.mule.umo.UMOEvent;
15  import org.mule.umo.UMOMessage;
16  import org.mule.umo.endpoint.UMOEndpoint;
17  
18  public interface UMONestedRouter extends UMORouter
19  {
20  
21      UMOMessage route(UMOEvent event) throws MessagingException;
22  
23      void setEndpoint(UMOEndpoint endpoint);
24  
25      UMOEndpoint getEndpoint();
26  
27      Class getInterface();
28  
29      void setInterface(Class interfaceClass);
30  
31      String getMethod();
32  
33      void setMethod(String method);
34  
35      /**
36       * This wires the dynamic proxy to the service object.
37       *
38       * @param target
39       */
40      Object createProxy(Object target);
41  }