View Javadoc

1   /*
2    * $Id: TestMessageReceiver.java 19191 2010-08-25 21:05:23Z tcarlson $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.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.tck.testmodels.mule;
12  
13  import org.mule.api.MuleException;
14  import org.mule.api.construct.FlowConstruct;
15  import org.mule.api.endpoint.InboundEndpoint;
16  import org.mule.api.lifecycle.CreateException;
17  import org.mule.api.transport.Connector;
18  import org.mule.transport.AbstractMessageReceiver;
19  
20  public class TestMessageReceiver extends AbstractMessageReceiver
21  {
22  
23      public TestMessageReceiver(Connector connector, FlowConstruct flowConstruct, InboundEndpoint endpoint) throws CreateException
24      {
25          super(connector, flowConstruct, endpoint);
26      }
27  
28      protected void doConnect() throws Exception
29      {
30          // no op
31      }
32  
33      protected void doDisconnect() throws Exception
34      {
35          // no op
36      }
37  
38      protected void doInitialise()
39      {
40          // template method
41      }
42  
43      protected void doDispose()
44      {
45          // no op
46      }
47  
48      protected void doStart() throws MuleException
49      {
50          // no op
51      }
52  
53      protected void doStop() throws MuleException
54      {
55          // no op
56      }
57  
58  }
59  
60