1 64 65 package com.jcorporate.expresso.core.misc; 66 67 72 73 import com.jcorporate.expresso.core.cache.Cacheable; 74 75 76 87 public class CacheEvent { 88 89 92 private String eventOriginator = null; 93 94 97 private String eventCode = null; 98 99 102 private Cacheable eventObject = null; 103 104 107 private String configKey = ("default"); 108 109 112 public CacheEvent() { 113 } 114 115 122 public CacheEvent(String newEventOriginator, String newEventCode) { 123 setOriginator(newEventOriginator); 124 setCode(newEventCode); 125 } 126 127 135 public CacheEvent(String newEventOriginator, String newEventCode, 136 Cacheable newEventObject) { 137 setOriginator(newEventOriginator); 138 setCode(newEventCode); 139 setObject(newEventObject); 140 } 141 142 149 public String getCode() { 150 return eventCode; 151 } 152 153 158 public String getConfigKey() { 159 return configKey; 160 } 161 162 167 public Cacheable getObject() { 168 return eventObject; 169 } 170 171 176 public String getOriginator() { 177 return eventOriginator; 178 } 179 180 188 public void setCode(String newEventCode) { 189 eventCode = newEventCode; 190 } 191 192 195 public void setConfigKey(String newConfigKey) { 196 configKey = newConfigKey; 197 } 198 199 204 public void setObject(Cacheable newObject) { 205 eventObject = newObject; 206 } 207 208 214 public void setOriginator(String newEventOriginator) { 215 eventOriginator = newEventOriginator; 216 } 217 218 } 219 | Popular Tags |