1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.acegisecurity.context.rmi;
17
18 import org.aopalliance.intercept.MethodInvocation;
19
20 import org.springframework.remoting.support.RemoteInvocation;
21 import org.springframework.remoting.support.RemoteInvocationFactory;
22
23
24 /***
25 * Called by a client-side instance of
26 * <code>org.springframework.remoting.rmi.RmiProxyFactoryBean</code> when it
27 * wishes to create a remote invocation.
28 *
29 * <P>
30 * Set an instance of this bean against the above class'
31 * <code>remoteInvocationFactory</code> property.
32 * </p>
33 *
34 * @author James Monaghan
35 * @author Ben Alex
36 * @version $Id: ContextPropagatingRemoteInvocationFactory.java,v 1.2 2005/11/17 00:56:47 benalex Exp $
37 */
38 public class ContextPropagatingRemoteInvocationFactory
39 implements RemoteInvocationFactory {
40
41
42 public RemoteInvocation createRemoteInvocation(
43 MethodInvocation methodInvocation) {
44 return new ContextPropagatingRemoteInvocation(methodInvocation);
45 }
46 }