1 package net.sf.crispy.strategy; 2 3 import java.util.Map; 4 5 import net.sf.crispy.InvocationStrategy; 6 7 /** 8 * Return the Interface-Name. 9 * 10 * @author Linke 11 * 12 */ 13 public class NameInvocationStrategy implements InvocationStrategy { 14 15 private String interfaceName = null; 16 17 public NameInvocationStrategy(String pvInterfaceName) { 18 interfaceName = pvInterfaceName; 19 } 20 21 public Object convert(Map pvPropertyMap) { 22 return interfaceName; 23 } 24 25 }