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