|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.remoting.support.RemoteExporter org.springframework.remoting.support.RemoteInvocationBasedExporter
public abstract class RemoteInvocationBasedExporter
Abstract base class for remote service exporters that are based on deserialization of RemoteInvocation objects. Provides a "remoteInvocationExecutor" property, with a DefaultRemoteInvocationExecutor as default.
RemoteInvocationExecutor
,
DefaultRemoteInvocationExecutor
Field Summary |
---|
Fields inherited from class org.springframework.remoting.support.RemoteExporter |
---|
logger |
Constructor Summary | |
---|---|
RemoteInvocationBasedExporter()
|
Method Summary | |
---|---|
RemoteInvocationExecutor |
getRemoteInvocationExecutor()
Return the RemoteInvocationExecutor used by this exporter. |
protected Object |
invoke(RemoteInvocation invocation,
Object targetObject)
Apply the given remote invocation to the given target object. |
protected RemoteInvocationResult |
invokeAndCreateResult(RemoteInvocation invocation,
Object targetObject)
Apply the given remote invocation to the given target object, wrapping the invocation result in a serializable RemoteInvocationResult object. |
void |
setRemoteInvocationExecutor(RemoteInvocationExecutor remoteInvocationExecutor)
Set the RemoteInvocationExecutor to use for this exporter. |
Methods inherited from class org.springframework.remoting.support.RemoteExporter |
---|
checkService, checkServiceInterface, getExporterName, getProxyForService, getService, getServiceInterface, isRegisterTraceInterceptor, setBeanClassLoader, setRegisterTraceInterceptor, setService, setServiceInterface |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RemoteInvocationBasedExporter()
Method Detail |
---|
public void setRemoteInvocationExecutor(RemoteInvocationExecutor remoteInvocationExecutor)
A custom invocation executor can extract further context information from the invocation, for example user credentials.
public RemoteInvocationExecutor getRemoteInvocationExecutor()
protected Object invoke(RemoteInvocation invocation, Object targetObject) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException
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 invocationtargetObject
- 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 exceptionRemoteInvocationExecutor.invoke(org.springframework.remoting.support.RemoteInvocation, java.lang.Object)
protected RemoteInvocationResult invokeAndCreateResult(RemoteInvocation invocation, Object targetObject)
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 invocationtargetObject
- the target object to apply the invocation to
invoke(org.springframework.remoting.support.RemoteInvocation, java.lang.Object)
|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |