org.springframework.remoting.support
Class RemoteInvocationBasedAccessor
java.lang.Object
org.springframework.remoting.support.RemoteAccessor
org.springframework.remoting.support.UrlBasedRemoteAccessor
org.springframework.remoting.support.RemoteInvocationBasedAccessor
- Direct Known Subclasses:
- HttpInvokerClientInterceptor, RmiClientInterceptor
- public abstract class RemoteInvocationBasedAccessor
- extends UrlBasedRemoteAccessor
Abstract base class for remote service accessors that are based on
serialization of RemoteInvocation objects. Provides a "remoteInvocationFactory"
property, with a DefaultRemoteInvocationFactory as default.
- Since:
- 1.1
- Author:
- Juergen Hoeller
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RemoteInvocationBasedAccessor
public RemoteInvocationBasedAccessor()
setRemoteInvocationFactory
public void setRemoteInvocationFactory(RemoteInvocationFactory remoteInvocationFactory)
- 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.
getRemoteInvocationFactory
public RemoteInvocationFactory getRemoteInvocationFactory()
- Return the RemoteInvocationFactory used by this accessor.
createRemoteInvocation
protected RemoteInvocation createRemoteInvocation(org.aopalliance.intercept.MethodInvocation methodInvocation)
- Create a new RemoteInvocation object for the given AOP method invocation.
The default implementation delegates to the RemoteInvocationFactory.
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.
- Parameters:
methodInvocation
- the current AOP method invocation
- Returns:
- the RemoteInvocation object
- See Also:
RemoteInvocationFactory.createRemoteInvocation(org.aopalliance.intercept.MethodInvocation)
Copyright (C) 2003-2004 The Spring Framework Project.