Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*     */ package javax.enterprise.deploy.spi.status;
 /*     */ 
 /*     */ import java.io.IOException;
 /*     */ import java.io.ObjectInputStream;
 /*     */ import java.io.ObjectInputStream.GetField;
 /*     */ import java.io.ObjectOutputStream;
 /*     */ import java.io.ObjectOutputStream.PutField;
 /*     */ import java.io.ObjectStreamField;
 /*     */ import java.util.EventObject;
/*     */ import org.jboss.util.id.SerialVersion;
/*     */ 
/*     */ public class ProgressEvent extends EventObject
/*     */ {
/*     */   static final long serialVersionUID;
/*     */   private static final ObjectStreamField[] serialPersistentFields;
/*     */   private static final int STATUS_IDX = 0;
/*     */   private static final int MODULE_ID_IDX = 1;
/*     */   private DeploymentStatus status;
/*     */   private TargetModuleID moduleID;
/*     */ 
/*     */   public ProgressEvent(Object sourceTargetModuleID moduleIDDeploymentStatus status)
/*     */   {
/*  95 */     super(source);
/*  96 */     this. = status;
/*  97 */     this. = moduleID;
/*     */   }
/*     */ 
/*     */   public TargetModuleID getTargetModuleID()
/*     */   {
/* 109 */     return this.;
/*     */   }
/*     */ 
/*     */   public DeploymentStatus getDeploymentStatus()
/*     */   {
/* 119 */     return this.;
/*     */   }
/*     */ 
/*     */   private void readObject(ObjectInputStream ois)
/*     */     throws ClassNotFoundExceptionIOException
/*     */   {
/* 130 */     ObjectInputStream.GetField fields = ois.readFields();
/* 131 */     String name = [0].getName();
/* 132 */     this. = ((DeploymentStatus)fields.get(namenull));
/* 133 */     name = [1].getName();
/* 134 */     this. = ((TargetModuleID)fields.get(namenull));
/*     */   }
/*     */ 
/*     */   private void writeObject(ObjectOutputStream oos)
/*     */     throws IOException
/*     */   {
/* 141 */     ObjectOutputStream.PutField fields = oos.putFields();
/* 142 */     String name = [0].getName();
/* 143 */     fields.put(namethis.);
/* 144 */     name = [1].getName();
/* 145 */     fields.put(namethis.);
/* 146 */     oos.writeFields();
/*     */   }
/*     */ 
/*     */   static
/*     */   {
/*  52 */     if (. == 0)
/*     */     {
/*  54 */        = 3097551795061550569L;
/*  55 */        = new ObjectStreamField[] { new ObjectStreamField("status"DeploymentStatus.class), new ObjectStreamField("moduleID"TargetModuleID.class) };
/*     */     }
/*     */     else
/*     */     {
/*  65 */        = 7815118532096485937L;
/*  66 */        = new ObjectStreamField[] { new ObjectStreamField("statuscode"DeploymentStatus.class), new ObjectStreamField("targetModuleID"TargetModuleID.class) };
/*     */     }
/*     */   }
/*     */ }
/* Location:           /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/jboss-embedded-all.jar
 * Qualified Name:     javax.enterprise.deploy.spi.status.ProgressEvent
 * JD-Core Version:    0.6.0
 */
New to GrepCode? Check out our FAQ X