1 16 17 package org.springframework.remoting.support; 18 19 import org.springframework.beans.factory.InitializingBean; 20 21 28 public abstract class UrlBasedRemoteAccessor extends RemoteAccessor implements InitializingBean { 29 30 private String serviceUrl; 31 32 33 37 public void setServiceUrl(String serviceUrl) { 38 this.serviceUrl = serviceUrl; 39 } 40 41 44 public String getServiceUrl() { 45 return this.serviceUrl; 46 } 47 48 49 public void afterPropertiesSet() { 50 if (getServiceUrl() == null) { 51 throw new IllegalArgumentException ("Property 'serviceUrl' is required"); 52 } 53 } 54 55 } 56 | Popular Tags |