Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*    */ package org.jboss.aspects.asynch;
 /*    */ 
 /*    */ import java.io.Externalizable;
 /*    */ import java.io.IOException;
 /*    */ import java.io.ObjectInput;
 /*    */ import java.io.ObjectOutput;
 /*    */ import org.jboss.aop.InstanceAdvisor;
 /*    */ import org.jboss.aop.util.PayloadKey;
/*    */ 
/*    */ public class AsynchProxyMixin
/*    */   implements AsynchProviderExternalizable
/*    */ {
/*    */   private static final long serialVersionUID = -6895953696792282031L;
/*    */   public static final String CURRENT_FUTURE = "CURRENT_FUTURE";
/*    */   private transient ThreadLocal currentFuture;
/*    */   private InstanceAdvisor advisor;
/*    */ 
/*    */   public void setAdvisor(InstanceAdvisor advisor)
/*    */   {
/* 49 */     this. = advisor;
/*    */   }
/*    */ 
/*    */   public void setFuture(Future future)
/*    */   {
/*    */     try
/*    */     {
/* 57 */       Future oldFuture = getFuture();
/* 58 */       if (oldFuture != nulloldFuture.release();
/*    */     }
/*    */     catch (Exception e)
/*    */     {
/*    */     }
/*    */ 
/* 64 */     this..set(future);
/*    */   }
/*    */ 
/*    */   public Future getFuture()
/*    */   {
/* 69 */     Future future = (Future)this..get();
/* 70 */     this..set(null);
/* 71 */     return future;
/*    */   }
/*    */ 
/*    */   public void writeExternal(ObjectOutput outthrows IOException
/*    */   {
/* 76 */     out.writeObject(this.);
/*    */   }
/*    */ 
/*    */   public void readExternal(ObjectInput inthrows IOExceptionClassNotFoundException
/*    */   {
/* 81 */     this. = ((InstanceAdvisor)in.readObject());
/* 82 */     this. = new ThreadLocal();
/* 83 */     this..getMetaData().addMetaData("CURRENT_FUTURE""CURRENT_FUTURE"this..);
/*    */   }
/*    */ }
/* Location:           /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/jboss-embedded-all.jar
 * Qualified Name:     org.jboss.aspects.asynch.AsynchProxyMixin
 * JD-Core Version:    0.6.0
 */
New to GrepCode? Check out our FAQ X