|
The Spring Framework | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.remoting.support.RemoteAccessor
org.springframework.remoting.support.UrlBasedRemoteAccessor
org.springframework.remoting.support.RemoteInvocationBasedAccessor
public abstract class RemoteInvocationBasedAccessor
Abstract base class for remote service accessors that are based on serialization of RemoteInvocation objects. Provides a "remoteInvocationFactory" property, with a DefaultRemoteInvocationFactory as default.
RemoteInvocationFactory,
DefaultRemoteInvocationFactory| Field Summary |
|---|
| Fields inherited from class org.springframework.remoting.support.RemoteAccessor |
|---|
logger |
| Constructor Summary | |
|---|---|
RemoteInvocationBasedAccessor()
|
|
| Method Summary | |
|---|---|
protected RemoteInvocation |
createRemoteInvocation(org.aopalliance.intercept.MethodInvocation methodInvocation)
Create a new RemoteInvocation object for the given AOP method invocation. |
RemoteInvocationFactory |
getRemoteInvocationFactory()
Return the RemoteInvocationFactory used by this accessor. |
protected Object |
recreateRemoteInvocationResult(RemoteInvocationResult result)
Recreate the invocation result contained in the given RemoteInvocationResult object. |
void |
setRemoteInvocationFactory(RemoteInvocationFactory remoteInvocationFactory)
Set the RemoteInvocationFactory to use for this accessor. |
| Methods inherited from class org.springframework.remoting.support.UrlBasedRemoteAccessor |
|---|
afterPropertiesSet, getServiceUrl, setServiceUrl |
| Methods inherited from class org.springframework.remoting.support.RemoteAccessor |
|---|
getServiceInterface, setServiceInterface |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RemoteInvocationBasedAccessor()
| Method Detail |
|---|
public void setRemoteInvocationFactory(RemoteInvocationFactory remoteInvocationFactory)
A custom invocation factory can add further context information to the invocation, for example user credentials.
public RemoteInvocationFactory getRemoteInvocationFactory()
protected RemoteInvocation createRemoteInvocation(org.aopalliance.intercept.MethodInvocation methodInvocation)
Can be overridden in subclasses to provide custom RemoteInvocation subclasses, containing additional invocation parameters like user credentials. Note that it is preferable to use a custom RemoteInvocationFactory which is a reusable strategy.
methodInvocation - the current AOP method invocation
RemoteInvocationFactory.createRemoteInvocation(org.aopalliance.intercept.MethodInvocation)
protected Object recreateRemoteInvocationResult(RemoteInvocationResult result)
throws Throwable
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 exceptionRemoteInvocationResult.recreate()
|
The Spring Framework | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||