1 25 26 package org.objectweb.jonas_ejb.container; 27 28 import java.io.Serializable ; 29 30 35 public class JWrapper implements Serializable { 36 37 private static final long serialVersionUID = 1L; 38 39 int type; 40 41 public static final int USER_TX = 1; 42 43 public static final int SESSION_CTX = 2; 44 45 public static final int HANDLE = 3; 46 47 Object obj; 48 49 public JWrapper(int type, Object arg) { 50 this.type = type; 51 this.obj = arg; 52 } 53 54 public int getType() { 55 return type; 56 } 57 58 public Object getObject() { 59 return obj; 60 } 61 } 62 | Popular Tags |