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.module.ibeans.annotations; 8 9 import org.ibeans.api.InvocationContext; 10 import org.ibeans.api.ParamFactory; 11 12 /** 13 * Relies on ordering with the {@link FirstParamFactory} being created first 14 */ 15 public class SecondParamFactory implements ParamFactory 16 { 17 public String create(String paramName, boolean optional, InvocationContext invocationContext) 18 { 19 //Just return what the {@link FirstParamFactory } created 20 return invocationContext.getIBeanConfig().getUriParams().get("param1") + " " + invocationContext.getIBeanConfig().getUriParams().get("foo"); 21 } 22 }