1 18 19 package org.objectweb.jac.aspects.queue; 20 21 import org.objectweb.jac.core.rtti.FieldItem; 22 23 public class FieldChangeEvent { 24 Object substance; 25 FieldItem field; 26 Object oldValue; 27 Object newValue; 28 29 public FieldChangeEvent(Object substance, FieldItem field, 30 Object oldValue, Object newValue) { 31 this.substance = substance; 32 this.field = field; 33 this.oldValue = oldValue; 34 this.newValue = newValue; 35 } 36 39 public Object getSubstance() { 40 return substance; 41 } 42 43 46 public FieldItem getField() { 47 return field; 48 } 49 50 53 public Object getOldValue() { 54 return oldValue; 55 } 56 57 60 public Object getNewValue() { 61 return newValue; 62 } 63 64 public String toString() { 65 return substance+"."+field.getName()+" changed from "+ 66 oldValue+" to "+newValue; 67 } 68 } 69 | Popular Tags |