1 16 17 package org.springframework.remoting.support; 18 19 import org.apache.commons.logging.Log; 20 import org.apache.commons.logging.LogFactory; 21 22 40 public abstract class RemoteAccessor { 41 42 43 protected final Log logger = LogFactory.getLog(getClass()); 44 45 private Class serviceInterface; 46 47 48 54 public void setServiceInterface(Class serviceInterface) { 55 if (serviceInterface != null && !serviceInterface.isInterface()) { 56 throw new IllegalArgumentException ("'serviceInterface' must be an interface"); 57 } 58 this.serviceInterface = serviceInterface; 59 } 60 61 64 public Class getServiceInterface() { 65 return this.serviceInterface; 66 } 67 68 } 69 | Popular Tags |