1 25 26 package com.rift.coad.lib.deployment; 27 28 import java.util.List ; 30 import java.util.ArrayList ; 31 import java.util.Vector ; 32 33 34 39 public class BeanInfo { 40 41 private String interfaceName = null; 43 private String className = null; 44 private Vector classes = new Vector (); 45 private String bindName = null; 46 private String role = null; 47 private String username = null; 48 private boolean cacheResults = false; 49 private long cacheTimeout = -1; 50 private List threadInfoList = new ArrayList (); 51 private boolean transaction = false; 52 53 54 57 public BeanInfo() { 58 59 } 60 61 62 67 public String getInterfaceName() { 68 return interfaceName; 69 } 70 71 72 77 public void setInterfaceName(String interfaceName) { 78 this.interfaceName = interfaceName; 79 } 80 81 82 87 public String getClassName() { 88 return className; 89 } 90 91 92 97 public void setClassName(String className) { 98 this.className = className; 99 } 100 101 102 107 public Vector getClasses() { 108 return classes; 109 } 110 111 112 117 public void setClasses(Vector classes) { 118 this.classes = classes; 119 } 120 121 122 127 public void addClass(String className) { 128 this.classes.add(className); 129 } 130 131 132 137 public String getBindName() { 138 return bindName; 139 } 140 141 142 147 public void setBindName(String bindName) { 148 this.bindName = bindName; 149 } 150 151 152 157 public String getRole() { 158 return role; 159 } 160 161 162 167 public void setRole(String role) { 168 this.role = role; 169 } 170 171 172 177 public String getUsername() { 178 return username; 179 } 180 181 182 187 public void setUsername(String username) { 188 this.username = username; 189 } 190 191 192 197 public boolean getCacheResults() { 198 return cacheResults; 199 } 200 201 202 207 public void setCacheResults(boolean cacheResults) { 208 this.cacheResults = cacheResults; 209 } 210 211 212 217 public long getCacheTimeout() { 218 return cacheTimeout; 219 } 220 221 222 227 public void setCacheTimeout(long cacheTimeout) { 228 this.cacheTimeout= cacheTimeout; 229 } 230 231 232 237 public List getThreadInfoList() { 238 return threadInfoList; 239 } 240 241 242 247 public void addThreadInfo(DeploymentThreadInfo threadInfo) { 248 threadInfoList.add(threadInfo); 249 } 250 251 252 257 public boolean getTransaction() { 258 return transaction; 259 } 260 261 262 267 public void setTransaction(boolean transaction) { 268 this.transaction = transaction; 269 } 270 271 277 public boolean isInitialized() { 278 if ((interfaceName != null) && (className != null) && (bindName != null) 279 && (role != null)) { 280 return true; 281 } 282 return false; 283 } 284 } 285 | Popular Tags |