1 17 18 19 package org.apache.catalina; 20 21 22 import java.util.EventObject ; 23 24 25 34 35 public final class LifecycleEvent 36 extends EventObject { 37 38 39 41 42 48 public LifecycleEvent(Lifecycle lifecycle, String type) { 49 50 this(lifecycle, type, null); 51 52 } 53 54 55 62 public LifecycleEvent(Lifecycle lifecycle, String type, Object data) { 63 64 super(lifecycle); 65 this.lifecycle = lifecycle; 66 this.type = type; 67 this.data = data; 68 69 } 70 71 72 74 75 78 private Object data = null; 79 80 81 84 private Lifecycle lifecycle = null; 85 86 87 90 private String type = null; 91 92 93 95 96 99 public Object getData() { 100 101 return (this.data); 102 103 } 104 105 106 109 public Lifecycle getLifecycle() { 110 111 return (this.lifecycle); 112 113 } 114 115 116 119 public String getType() { 120 121 return (this.type); 122 123 } 124 125 126 } 127 | Popular Tags |