FileDocCategorySizeDatePackage
IsLocalProxyFactoryInterceptor.javaAPI DocJBoss 4.2.12793Fri Jul 13 20:53:46 BST 2007org.jboss.ejb3.remoting

IsLocalProxyFactoryInterceptor

public class IsLocalProxyFactoryInterceptor extends Object implements Serializable, org.jboss.aop.advice.Interceptor
Routes the call to the local container, bypassing further client-side interceptors and any remoting layer, if this interceptor was created in this JVM.
author
Bill Burke
author
Brian Stansberry
version
$Revision: 61667 $

Fields Summary
private static final long
serialVersionUID
public static final IsLocalProxyFactoryInterceptor
singleton
private static final Logger
log
private static final long
stamp
private long
marshalledStamp
Constructors Summary
Methods Summary
public java.lang.StringgetName()


     
   
      return getClass().getName();
   
public java.lang.Objectinvoke(org.jboss.aop.joinpoint.Invocation invocation)

      if (isLocal())
      {
         Object oid = invocation.getMetaData(Dispatcher.DISPATCHER, Dispatcher.OID);
         if (Dispatcher.singleton.isRegistered(oid))
         {
            InvocationResponse response = Dispatcher.singleton.invoke(invocation);
            invocation.setResponseContextInfo(response.getContextInfo());
            return response.getResponse();
         }
      }
      return invocation.invokeNext();
   
private booleanisLocal()

      return stamp == marshalledStamp;