org.springframework.remoting.jaxrpc
public class: JaxRpcPortProxyFactoryBean [javadoc |
source]
java.lang.Object
org.springframework.remoting.jaxrpc.LocalJaxRpcServiceFactory
org.springframework.remoting.jaxrpc.JaxRpcPortClientInterceptor
org.springframework.remoting.jaxrpc.JaxRpcPortProxyFactoryBean
All Implemented Interfaces:
BeanClassLoaderAware, FactoryBean, org.aopalliance.intercept.MethodInterceptor, InitializingBean
org.springframework.beans.factory.FactoryBean for a specific port of a
JAX-RPC service. Exposes a proxy for the port, to be used for bean references.
Inherits configuration properties from
JaxRpcPortClientInterceptor .
This factory is typically used with an RMI service interface. Alternatively,
this factory can also proxy a JAX-RPC service with a matching non-RMI business
interface, i.e. an interface that mirrors the RMI service methods but does not
declare RemoteExceptions. In the latter case, RemoteExceptions thrown by the
JAX-RPC stub will automatically get converted to Spring's unchecked
RemoteAccessException.
If exposing the JAX-RPC port interface (i.e. an RMI interface) directly,
setting "serviceInterface" is sufficient. If exposing a non-RMI business
interface, the business interface needs to be set as "serviceInterface",
and the JAX-RPC port interface as "portInterface".
| Methods from org.springframework.remoting.jaxrpc.JaxRpcPortClientInterceptor: |
|---|
|
addCustomProperty, afterPropertiesSet, alwaysUseJaxRpcCall, doInvoke, doInvoke, getCustomPropertyMap, getEndpointAddress, getJaxRpcService, getPassword, getPortInterface, getPortName, getPortQName, getPortStub, getServiceInterface, getUsername, handleRemoteException, invoke, isConnectFailure, isMaintainSession, isPrepared, performJaxRpcCall, postProcessJaxRpcCall, postProcessPortStub, prepare, prepareJaxRpcCall, preparePortStub, reset, setCustomProperties, setCustomPropertyMap, setEndpointAddress, setJaxRpcService, setLookupServiceOnStartup, setMaintainSession, setPassword, setPortInterface, setPortName, setRefreshServiceAfterConnectFailure, setServiceInterface, setUsername |
| Methods from org.springframework.remoting.jaxrpc.LocalJaxRpcServiceFactory: |
|---|
|
createJaxRpcService, createService, createServiceFactory, getJaxRpcServiceInterface, getJaxRpcServiceProperties, getNamespaceUri, getQName, getServiceFactory, getServiceFactoryClass, getServiceName, getServicePostProcessors, getWsdlDocumentUrl, postProcessJaxRpcService, setJaxRpcServiceInterface, setJaxRpcServiceProperties, setNamespaceUri, setServiceFactory, setServiceFactoryClass, setServiceName, setServicePostProcessors, setWsdlDocumentUrl |
| Method from org.springframework.remoting.jaxrpc.JaxRpcPortProxyFactoryBean Detail: |
public void afterPropertiesSet() {
if (getServiceInterface() == null) {
// Use JAX-RPC port interface (a traditional RMI interface)
// as service interface if none explicitly specified.
if (getPortInterface() != null) {
setServiceInterface(getPortInterface());
}
else {
throw new IllegalArgumentException("Property 'serviceInterface' is required");
}
}
super.afterPropertiesSet();
this.serviceProxy = new ProxyFactory(getServiceInterface(), this).getProxy(this.beanClassLoader);
}
|
public Object getObject() {
return this.serviceProxy;
}
|
public Class getObjectType() {
return getServiceInterface();
}
|
public boolean isSingleton() {
return true;
}
|
public void setBeanClassLoader(ClassLoader classLoader) {
this.beanClassLoader = classLoader;
}
|