Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*     */ package org.jboss.ejb3.stateful;
  /*     */ 
  /*     */ import java.lang.reflect.Method;
  /*     */ import javax.ejb.EJBMetaData;
  /*     */ import javax.ejb.HomeHandle;
  /*     */ import org.jboss.aop.advice.Interceptor;
  /*     */ import org.jboss.aop.metadata.SimpleMetaData;
  /*     */ import org.jboss.aop.util.MethodHashing;
  /*     */ import org.jboss.aop.util.PayloadKey;
 /*     */ import org.jboss.ejb3.Container;
 /*     */ import org.jboss.ejb3.ProxyUtils;
 /*     */ import org.jboss.logging.Logger;
 /*     */ import org.jboss.remoting.InvokerLocator;
 /*     */ 
 /*     */ public class StatefulHomeRemoteProxy extends BaseSessionRemoteProxy
 /*     */ {
 /*     */   private static final long serialVersionUID = 5509794838403316545L;
 /*  48 */   private static final Logger log = Logger.getLogger(StatefulHomeRemoteProxy.class);
 /*     */   protected InvokerLocator uri;
 /*     */   private HomeHandle homeHandle;
 /*     */   private EJBMetaData ejbMetaData;
 /*     */ 
 /*     */   public StatefulHomeRemoteProxy(Container containerInterceptor[] interceptorsInvokerLocator uri)
 /*     */   {
 /*  56 */     super(containerinterceptors);
 /*  57 */     this. = uri;
 /*     */   }
 /*     */ 
 /*     */   public StatefulHomeRemoteProxy(Container containerInterceptor[] interceptorsInvokerLocator uriObject id)
 /*     */   {
 /*  62 */     super(containerinterceptors);
 /*  63 */     this. = uri;
 /*  64 */     this. = id;
 /*     */   }
 /*     */ 
 /*     */   protected StatefulHomeRemoteProxy()
 /*     */   {
 /*     */   }
 /*     */ 
 /*     */   public void setHandle(StatefulHandleImpl handle)
 /*     */   {
 /*  73 */     this. = handle;
 /*  74 */     handle.id = this.;
 /*     */   }
 /*     */ 
 /*     */   public void setHomeHandle(HomeHandle homeHandle)
 /*     */   {
 /*  79 */     this. = homeHandle;
 /*     */   }
 /*     */ 
 /*     */   public void setEjbMetaData(EJBMetaData ejbMetaData)
 /*     */   {
 /*  84 */     this. = ejbMetaData;
 /*     */   }
 /*     */ 
 /*     */   public Object invoke(Object proxyMethod methodObject[] args)
 /*     */     throws Throwable
 /*     */   {
 /*  90 */     long hash = MethodHashing.calculateHash(method);
 /*  91 */     Object ret = ProxyUtils.handleCallLocally(hashproxythismethodargs);
 /*  92 */     if (ret != null)
 /*     */     {
 /*  94 */       return ret;
 /*     */     }
 /*     */ 
 /*  97 */     ret = handleEjb21CallLocally(methodargs);
 /*  98 */     if (ret != null)
 /*     */     {
 /* 100 */       return ret;
 /*     */     }
 /*     */ 
 /* 103 */     StatefulRemoteInvocation sri = new StatefulRemoteInvocation(this.hashmethodmethodnullnull);
 /* 104 */     sri.setArguments(args);
 /* 105 */     sri.setInstanceResolver(this.);
 /* 106 */     sri.getMetaData().addMetaData("DISPATCHER""OID"this..);
 /* 107 */     sri.getMetaData().addMetaData("REMOTING""INVOKER_LOCATOR"this..);
 /* 108 */     sri.getMetaData().addMetaData("REMOTING""SUBSYSTEM""AOP".);
 /* 109 */     sri.getMetaData().addMetaData("IS_LOCAL""GUID"this..);
 /*     */ 
 /* 111 */     return sri.invokeNext();
 /*     */   }
 /*     */ 
 /*     */   public Object getAsynchronousProxy(Object proxy)
 /*     */   {
 /* 116 */     throw new RuntimeException("NOT IMPLEMENTED");
 /*     */   }
 /*     */ 
 /*     */   public String toString()
 /*     */   {
 /* 121 */     return this..toString() + ":Home";
 /*     */   }
 /*     */ 
 /*     */   private Object handleEjb21CallLocally(Method methodObject[] args)
 /*     */   {
 /* 126 */     if (method.equals(.))
 /*     */     {
 /* 128 */       return this.;
 /*     */     }
/* 130 */     if (method.equals(.))
/*     */     {
/* 132 */       return this.;
/*     */     }
/*     */ 
/* 135 */     return null;
/*     */   }
/*     */ }
/* Location:           /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/jboss-embedded-all.jar
 * Qualified Name:     org.jboss.ejb3.stateful.StatefulHomeRemoteProxy
 * JD-Core Version:    0.6.0
 */
New to GrepCode? Check out our FAQ X