1 16 17 package org.springframework.remoting.jaxrpc; 18 19 import javax.xml.rpc.Service ; 20 import javax.xml.rpc.ServiceException ; 21 22 import org.springframework.beans.factory.FactoryBean; 23 import org.springframework.beans.factory.InitializingBean; 24 25 38 public class LocalJaxRpcServiceFactoryBean extends LocalJaxRpcServiceFactory 39 implements FactoryBean, InitializingBean { 40 41 private Service service; 42 43 public void afterPropertiesSet() throws ServiceException { 44 this.service = createJaxRpcService(); 45 } 46 47 public Object getObject() throws Exception { 48 return this.service; 49 } 50 51 public Class getObjectType() { 52 return (this.service != null ? this.service.getClass() : Service .class); 53 } 54 55 public boolean isSingleton() { 56 return true; 57 } 58 59 } 60 | Popular Tags |