1 /* 2 * $Id: TestEntryPointResolverSet.java 10787 2008-02-12 18:51:50Z dfeist $ 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.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 24 /** 25 * Will add a resolver to the list of resolvers to invoke on a compoent. 26 * Implementations must maintain an ordered list of resolvers 27 * 28 * @param resolver the resolver to add 29 */ 30 public void addEntryPointResolver(EntryPointResolver resolver) 31 { 32 33 } 34 35 public Object invoke(Object component, MuleEventContext context) throws Exception 36 { 37 return null; 38 } 39 40 /** 41 * Removes a resolver from the list 42 * 43 * @param resolver the resolver to remove 44 * @return true if the resolver was found and removed from the list 45 */ 46 public boolean removeEntryPointResolver(EntryPointResolver resolver) 47 { 48 return false; 49 } 50 }