1 23 24 31 32 package com.sun.appserv.server; 33 34 35 40 public class LifecycleEvent extends java.util.EventObject { 41 42 private int eventType; 43 private Object eventData; 44 private LifecycleEventContext ctx = null; 45 46 48 50 public final static int INIT_EVENT = 0; 51 52 54 public final static int STARTUP_EVENT = 1; 55 56 58 public final static int READY_EVENT = 2; 59 60 62 public final static int SHUTDOWN_EVENT = 3; 63 64 66 public final static int TERMINATION_EVENT = 4; 67 68 69 75 public LifecycleEvent(Object source, int eventType, Object eventData, LifecycleEventContext ctx) { 76 super(source); 77 78 this.eventType = eventType; 79 this.eventData = eventData; 80 this.ctx = ctx; 81 } 82 83 85 public int getEventType() { 86 return eventType; 87 } 88 89 91 public Object getData() { 92 return eventData; 93 } 94 95 97 public LifecycleEventContext getLifecycleEventContext() { 98 return ctx; 99 } 100 } 101 | Popular Tags |