1 17 18 19 package org.apache.catalina; 20 21 22 31 32 public interface Lifecycle { 33 34 35 37 38 41 public static final String INIT_EVENT = "init"; 42 43 44 47 public static final String START_EVENT = "start"; 48 49 50 53 public static final String BEFORE_START_EVENT = "before_start"; 54 55 56 59 public static final String AFTER_START_EVENT = "after_start"; 60 61 62 65 public static final String STOP_EVENT = "stop"; 66 67 68 71 public static final String BEFORE_STOP_EVENT = "before_stop"; 72 73 74 77 public static final String AFTER_STOP_EVENT = "after_stop"; 78 79 80 83 public static final String DESTROY_EVENT = "destroy"; 84 85 86 89 public static final String PERIODIC_EVENT = "periodic"; 90 91 92 94 95 100 public void addLifecycleListener(LifecycleListener listener); 101 102 103 107 public LifecycleListener[] findLifecycleListeners(); 108 109 110 115 public void removeLifecycleListener(LifecycleListener listener); 116 117 118 127 public void start() throws LifecycleException; 128 129 130 139 public void stop() throws LifecycleException; 140 141 142 } 143 | Popular Tags |