1 22 package org.jboss.util.id; 23 24 import java.security.AccessController ; 25 import java.security.PrivilegedAction ; 26 27 41 public class SerialVersion 42 { 43 45 46 public static final int LEGACY = 0; 47 48 49 public static final int JBOSS_402 = 1; 50 51 54 public static int version = JBOSS_402; 55 56 57 static 58 { 59 AccessController.doPrivileged(new PrivilegedAction () 60 { 61 public Object run() 62 { 63 try 64 { 65 if (System.getProperty("org.jboss.j2ee.LegacySerialization") != null) 66 version = LEGACY; 67 } 68 catch (Throwable ignored) 69 { 70 } 71 return null; 72 } 73 }); 74 } 75 } 76 | Popular Tags |