Coverage Report - org.acegisecurity.context.rmi.ContextPropagatingRemoteInvocationFactory
 
Classes in this File Line Coverage Branch Coverage Complexity
ContextPropagatingRemoteInvocationFactory
100% 
N/A 
1
 
 1  
 /* Copyright 2004, 2005, 2006 Acegi Technology Pty Limited
 2  
  *
 3  
  * Licensed under the Apache License, Version 2.0 (the "License");
 4  
  * you may not use this file except in compliance with the License.
 5  
  * You may obtain a copy of the License at
 6  
  *
 7  
  *     http://www.apache.org/licenses/LICENSE-2.0
 8  
  *
 9  
  * Unless required by applicable law or agreed to in writing, software
 10  
  * distributed under the License is distributed on an "AS IS" BASIS,
 11  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 12  
  * See the License for the specific language governing permissions and
 13  
  * limitations under the License.
 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 <code>org.springframework.remoting.rmi.RmiProxyFactoryBean</code> when it
 26  
  * wishes to create a remote invocation.<P>Set an instance of this bean against the above class'
 27  
  * <code>remoteInvocationFactory</code> property.</p>
 28  
  *
 29  
  * @author James Monaghan
 30  
  * @author Ben Alex
 31  
  * @version $Id: ContextPropagatingRemoteInvocationFactory.java 1496 2006-05-23 13:38:33Z benalex $
 32  
  */
 33  3
 public class ContextPropagatingRemoteInvocationFactory implements RemoteInvocationFactory {
 34  
     //~ Methods ========================================================================================================
 35  
 
 36  
     public RemoteInvocation createRemoteInvocation(MethodInvocation methodInvocation) {
 37  3
         return new ContextPropagatingRemoteInvocation(methodInvocation);
 38  
     }
 39  
 }