1 22 package org.jboss.ejb3.test.interceptors2; 23 24 import java.io.Serializable ; 25 26 31 public class Interception implements Serializable 32 { 33 private String classname; 34 private String method; 35 private int instance = -1; 36 37 public Interception(Object obj, String method) 38 { 39 if (obj instanceof Class ) 40 this.classname = ((Class )obj).getName(); 41 else 42 this.classname = obj.getClass().getName(); 43 44 this.method = method; 45 } 46 47 public Interception(Object obj, String method, int instance) 48 { 49 this.classname = obj.getClass().getName(); 50 this.method = method; 51 this.instance = instance; 52 } 53 54 public String getClassname() 55 { 56 return classname; 57 } 58 59 public int getInstance() 60 { 61 return instance; 62 } 63 64 public String getMethod() 65 { 66 return method; 67 } 68 69 public String toString() 70 { 71 return classname + "." + method + "-" + instance; 72 } 73 } 74 | Popular Tags |