public abstract class RemoteAccessor extends RemotingSupport
Note that the service interface being used will show some signs of remotability, like the granularity of method calls that it offers. Furthermore, it has to have serializable arguments etc.
Accessors are supposed to throw Spring's generic
RemoteAccessException
in case
of remote invocation failure, provided that the service interface
does not declare java.rmi.RemoteException
.
RemoteAccessException
,
RemoteException
logger
Constructor and Description |
---|
RemoteAccessor() |
Modifier and Type | Method and Description |
---|---|
java.lang.Class<?> |
getServiceInterface()
Return the interface of the service to access.
|
void |
setServiceInterface(java.lang.Class<?> serviceInterface)
Set the interface of the service to access.
|
getBeanClassLoader, overrideThreadContextClassLoader, resetThreadContextClassLoader, setBeanClassLoader
public void setServiceInterface(java.lang.Class<?> serviceInterface)
Typically required to be able to create a suitable service proxy, but can also be optional if the lookup returns a typed proxy.
public java.lang.Class<?> getServiceInterface()