1 17 18 19 package org.apache.catalina; 20 21 22 import java.util.EventObject ; 23 24 25 31 32 public final class ContainerEvent 33 extends EventObject { 34 35 36 39 private Container container = null; 40 41 42 45 private Object data = null; 46 47 48 51 private String type = null; 52 53 54 61 public ContainerEvent(Container container, String type, Object data) { 62 63 super(container); 64 this.container = container; 65 this.type = type; 66 this.data = data; 67 68 } 69 70 71 74 public Object getData() { 75 76 return (this.data); 77 78 } 79 80 81 84 public Container getContainer() { 85 86 return (this.container); 87 88 } 89 90 91 94 public String getType() { 95 96 return (this.type); 97 98 } 99 100 101 104 public String toString() { 105 106 return ("ContainerEvent['" + getContainer() + "','" + 107 getType() + "','" + getData() + "']"); 108 109 } 110 111 112 } 113 | Popular Tags |