java.lang.Object | ||||
↳ | org.springframework.remoting.support.RemotingSupport | |||
↳ | org.springframework.remoting.support.RemoteAccessor | |||
↳ | org.springframework.remoting.support.UrlBasedRemoteAccessor | |||
↳ | org.springframework.remoting.support.RemoteInvocationBasedAccessor |
Known Direct Subclasses |
Known Indirect Subclasses |
Abstract base class for remote service accessors that are based
on serialization of RemoteInvocation
objects.
Provides a "remoteInvocationFactory" property, with a
DefaultRemoteInvocationFactory
as default strategy.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.remoting.support.RemotingSupport
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return the RemoteInvocationFactory used by this accessor.
| |||||||||||
Set the RemoteInvocationFactory to use for this accessor.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a new RemoteInvocation object for the given AOP method invocation.
| |||||||||||
Recreate the invocation result contained in the given RemoteInvocationResult object.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.remoting.support.UrlBasedRemoteAccessor
| |||||||||||
From class
org.springframework.remoting.support.RemoteAccessor
| |||||||||||
From class
org.springframework.remoting.support.RemotingSupport
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.beans.factory.BeanClassLoaderAware
| |||||||||||
From interface
org.springframework.beans.factory.InitializingBean
|
Return the RemoteInvocationFactory used by this accessor.
Set the RemoteInvocationFactory to use for this accessor.
Default is a DefaultRemoteInvocationFactory
.
A custom invocation factory can add further context information to the invocation, for example user credentials.
Create a new RemoteInvocation object for the given AOP method invocation.
The default implementation delegates to the configured
RemoteInvocationFactory
.
This can be overridden in subclasses in order to provide custom RemoteInvocation
subclasses, containing additional invocation parameters (e.g. user credentials).
Note that it is preferable to build a custom RemoteInvocationFactory as a reusable strategy, instead of overriding this method.
methodInvocation | the current AOP method invocation |
---|
Recreate the invocation result contained in the given RemoteInvocationResult object.
The default implementation calls the default recreate()
method.
This can be overridden in subclass to provide custom recreation, potentially
processing the returned result object.
result | the RemoteInvocationResult to recreate |
---|
Throwable | if the invocation result is an exception |
---|