1 17 18 19 package org.apache.catalina.deploy; 20 21 import java.io.Serializable ; 22 import java.util.HashMap ; 23 import java.util.Iterator ; 24 25 26 33 34 public class ContextTransaction implements Serializable { 35 36 37 39 40 43 private HashMap properties = new HashMap (); 44 45 48 public Object getProperty(String name) { 49 return properties.get(name); 50 } 51 52 55 public void setProperty(String name, Object value) { 56 properties.put(name, value); 57 } 58 59 62 public void removeProperty(String name) { 63 properties.remove(name); 64 } 65 66 69 public Iterator listProperties() { 70 return properties.keySet().iterator(); 71 } 72 73 74 76 77 80 public String toString() { 81 82 StringBuffer sb = new StringBuffer ("Transaction["); 83 sb.append("]"); 84 return (sb.toString()); 85 86 } 87 88 89 91 92 95 protected NamingResources resources = null; 96 97 public NamingResources getNamingResources() { 98 return (this.resources); 99 } 100 101 void setNamingResources(NamingResources resources) { 102 this.resources = resources; 103 } 104 105 106 } 107 | Popular Tags |