View Javadoc

1   /*
2    * $Id: TestAgent.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.tck.testmodels.mule;
12  
13  import org.mule.umo.UMOException;
14  import org.mule.umo.lifecycle.InitialisationException;
15  import org.mule.umo.manager.UMOAgent;
16  
17  /**
18   * Mock agent
19   */
20  public class TestAgent implements UMOAgent
21  {
22      public String getName()
23      {
24          return "Test Agent";
25      }
26  
27      public void setName(String name)
28      {
29          // nothing to do
30      }
31  
32      public String getDescription()
33      {
34          return "Test JMX Agent";
35      }
36  
37      public void initialise() throws InitialisationException
38      {
39          // nothing to do
40      }
41  
42      public void start() throws UMOException
43      {
44          // nothing to do
45      }
46  
47      public void stop() throws UMOException
48      {
49          // nothing to do
50      }
51  
52      public void dispose()
53      {
54          // nothing to do
55      }
56  
57      public void registered()
58      {
59          // nothing to do
60      }
61  
62      public void unregistered()
63      {
64          // nothing to do
65      }
66  }