1 7 package org.jboss.cache.aop; 8 9 import java.lang.reflect.Method ; 10 11 16 17 public class CachedAttribute 18 { 19 20 protected String name; 21 protected Class type; 22 protected Method get, set; 23 24 public CachedAttribute() 25 { 26 } 27 28 public CachedAttribute(String name) 29 { 30 this.name = name; 31 } 32 33 public String getName() 34 { 35 return this.name; 36 } 37 38 public Class getType() 39 { 40 return this.type; 41 } 42 43 public void setType(Class type) 44 { 45 if (this.type != null && this.type != type) { 46 throw new IllegalArgumentException ("get/set types differ"); 48 } 49 this.type = type; 50 } 51 52 public Method getGet() 53 { 54 return this.get; 55 } 56 57 public void setGet(Method get) 58 { 59 this.get = get; 60 } 61 62 public Method getSet() 63 { 64 return this.set; 65 } 66 67 public void setSet(Method set) 68 { 69 this.set = set; 70 } 71 72 } | Popular Tags |