View Javadoc
1   /*
2    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
3    * The software in this package is published under the terms of the CPAL v1.0
4    * license, a copy of which has been included with this distribution in the
5    * LICENSE.txt file.
6    */
7   package org.mule.tck.testmodels.mule;
8   
9   import org.mule.api.MuleException;
10  import org.mule.api.construct.FlowConstruct;
11  import org.mule.api.endpoint.InboundEndpoint;
12  import org.mule.api.lifecycle.CreateException;
13  import org.mule.api.transport.Connector;
14  import org.mule.transport.AbstractMessageReceiver;
15  
16  public class TestMessageReceiver extends AbstractMessageReceiver
17  {
18  
19      public TestMessageReceiver(Connector connector, FlowConstruct flowConstruct, InboundEndpoint endpoint) throws CreateException
20      {
21          super(connector, flowConstruct, endpoint);
22      }
23  
24      protected void doConnect() throws Exception
25      {
26          // no op
27      }
28  
29      protected void doDisconnect() throws Exception
30      {
31          // no op
32      }
33  
34      protected void doInitialise()
35      {
36          // template method
37      }
38  
39      protected void doDispose()
40      {
41          // no op
42      }
43  
44      protected void doStart() throws MuleException
45      {
46          // no op
47      }
48  
49      protected void doStop() throws MuleException
50      {
51          // no op
52      }
53  
54  }
55  
56