Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*    */ package org.jboss.aop.util;
 /*    */ 
 /*    */ import java.io.ObjectStreamException;
 /*    */ import java.io.Serializable;
 /*    */ import java.util.ArrayList;
 /*    */ 
 /*    */ public final class PayloadKey
 /*    */   implements Serializable
 /*    */ {
/*    */   static final long serialVersionUID = 7688683906350419871L;
/* 37 */   private static int nextOrdinal = 0;
/*    */ 
/* 39 */   private static final ArrayList values = new ArrayList(3);
/*    */ 
/* 42 */   public static final PayloadKey TRANSIENT = new PayloadKey("TRANSIENT");
/*    */ 
/* 45 */   public static final PayloadKey AS_IS = new PayloadKey("AS_IS");
/*    */ 
/* 48 */   public static final PayloadKey MARSHALLED = new PayloadKey("MARSHALLED");
/*    */   private final transient String name;
/*    */   private final int ordinal;
/*    */ 
/*    */   private PayloadKey(String name)
/*    */   {
/* 57 */     this.name = name;
/* 58 */     this.ordinal = (nextOrdinal++);
/* 59 */     values.add(this);
/*    */   }
/*    */ 
/*    */   public String toString()
/*    */   {
/* 64 */     return this.name;
/*    */   }
/*    */ 
/*    */   Object readResolve() throws ObjectStreamException
/*    */   {
/* 69 */     return values.get(this.ordinal);
/*    */   }
/*    */ }
/* Location:           /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/jboss-embedded-all.jar
 * Qualified Name:     org.jboss.aop.util.PayloadKey
 * JD-Core Version:    0.6.0
 */
New to GrepCode? Check out our FAQ X