1 package net.sf.crispy.server; 2 3 /** 4 * Services are added to ServiceEndpoint as String. Sometimes it is better, if 5 * can register the ServiceImpl instance. For this cases, can implement this interface and 6 * can added service instances. 7 * 8 * @author Linke 9 * 10 */ 11 public interface ServiceCreator { 12 13 /** 14 * Create a Service instance. 15 * 16 * @param pvServiceInterfaceClassName The service interface name. 17 * @param pvServiceImplClassName The service implementation class name. 18 * @return The service instance. 19 * @throws Exception 20 */ 21 public Object createService(String pvServiceInterfaceClassName, String pvServiceImplClassName) throws Exception; 22 23 }