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.MuleEventContext;
10  import org.mule.api.model.EntryPointResolver;
11  import org.mule.api.model.EntryPointResolverSet;
12  
13  /**
14   * <code>TestEntryPointResolver</code> is a test EntryPointResolver that doesn't provide
15   * any functionality. It is usually used to test confguration options
16   */
17  public class TestEntryPointResolverSet implements EntryPointResolverSet
18  {
19      private String testProperty;
20  
21      /**
22       * Will add a resolver to the list of resolvers to invoke on a compoent.
23       * Implementations must maintain an ordered list of resolvers
24       *
25       * @param resolver the resolver to add
26       */
27      public void addEntryPointResolver(EntryPointResolver resolver)
28      {
29  
30      }
31  
32      public Object invoke(Object component, MuleEventContext context) throws Exception
33      {
34          return null;
35      }
36  
37      /**
38       * Removes a resolver from the list
39       *
40       * @param resolver the resolver to remove
41       * @return true if the resolver was found and removed from the list
42       */
43      public boolean removeEntryPointResolver(EntryPointResolver resolver)
44      {
45          return false;
46      }
47  
48      public String getTestProperty()
49      {
50          return testProperty;
51      }
52  
53      public void setTestProperty(String testProperty)
54      {
55          this.testProperty = testProperty;
56      }
57  }