java.lang.Object | |||
↳ | org.springframework.remoting.support.RemotingSupport | ||
↳ | org.springframework.remoting.support.RemoteExporter | ||
↳ | org.springframework.remoting.support.RemoteInvocationBasedExporter |
Known Direct Subclasses |
Known Indirect Subclasses |
Abstract base class for remote service exporters that are based
on deserialization of RemoteInvocation
objects.
Provides a "remoteInvocationExecutor" property, with a
DefaultRemoteInvocationExecutor
as default strategy.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.remoting.support.RemotingSupport
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return the RemoteInvocationExecutor used by this exporter.
| |||||||||||
Set the RemoteInvocationExecutor to use for this exporter.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Apply the given remote invocation to the given target object.
| |||||||||||
Apply the given remote invocation to the given target object, wrapping
the invocation result in a serializable RemoteInvocationResult object.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.remoting.support.RemoteExporter
| |||||||||||
From class
org.springframework.remoting.support.RemotingSupport
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.beans.factory.BeanClassLoaderAware
|
Return the RemoteInvocationExecutor used by this exporter.
Set the RemoteInvocationExecutor to use for this exporter. Default is a DefaultRemoteInvocationExecutor.
A custom invocation executor can extract further context information from the invocation, for example user credentials.
Apply the given remote invocation to the given target object. The default implementation delegates to the RemoteInvocationExecutor.
Can be overridden in subclasses for custom invocation behavior, possibly for applying additional invocation parameters from a custom RemoteInvocation subclass. Note that it is preferable to use a custom RemoteInvocationExecutor which is a reusable strategy.
invocation | the remote invocation |
---|---|
targetObject | the target object to apply the invocation to |
NoSuchMethodException | if the method name could not be resolved |
---|---|
IllegalAccessException | if the method could not be accessed |
InvocationTargetException | if the method invocation resulted in an exception |
Apply the given remote invocation to the given target object, wrapping the invocation result in a serializable RemoteInvocationResult object. The default implementation creates a plain RemoteInvocationResult.
Can be overridden in subclasses for custom invocation behavior, for example to return additional context information. Note that this is not covered by the RemoteInvocationExecutor strategy!
invocation | the remote invocation |
---|---|
targetObject | the target object to apply the invocation to |