1 /* 2 * The contents of this file are subject to the terms 3 * of the Common Development and Distribution License 4 * (the License). You may not use this file except in 5 * compliance with the License. 6 * 7 * You can obtain a copy of the license at 8 * https://glassfish.dev.java.net/public/CDDLv1.0.html or 9 * glassfish/bootstrap/legal/CDDLv1.0.txt. 10 * See the License for the specific language governing 11 * permissions and limitations under the License. 12 * 13 * When distributing Covered Code, include this CDDL 14 * Header Notice in each file and include the License file 15 * at glassfish/bootstrap/legal/CDDLv1.0.txt. 16 * If applicable, add the following below the CDDL Header, 17 * with the fields enclosed by brackets [] replaced by 18 * you own identifying information: 19 * "Portions Copyrighted [year] [name of copyright owner]" 20 * 21 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 22 */ 23 24 /** 25 * PROPRIETARY/CONFIDENTIAL. Use of this product is subject to license terms. 26 * 27 * Copyright 2001-2002 by iPlanet/Sun Microsystems, Inc., 28 * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. 29 * All rights reserved. 30 */ 31 package com.sun.enterprise.admin.event; 32 33 /** 34 * This is the listener interface that should be implemented to handle all 35 * deployment events. A deployment event is one of - deployed, undeployed, 36 * redeployed, enabled or disabled on J2ee application, standalone J2EE 37 * module or application server resource. 38 */ 39 public interface BaseDeployEventListener extends AdminEventListener { 40 41 /** 42 * Invoked when a J2EE application is deployed. 43 * @throws AdminEventListenerException when the listener is unable to 44 * process the event. 45 */ 46 public void applicationDeployed(BaseDeployEvent event) 47 throws AdminEventListenerException; 48 49 /** 50 * Invoked when a J2EE application is undeployed. 51 * @throws AdminEventListenerException when the listener is unable to 52 * process the event. 53 */ 54 public void applicationUndeployed(BaseDeployEvent event) 55 throws AdminEventListenerException; 56 57 /** 58 * Invoked when a J2EE application is redeployed. 59 * @throws AdminEventListenerException when the listener is unable to 60 * process the event. 61 */ 62 public void applicationRedeployed(BaseDeployEvent event) 63 throws AdminEventListenerException; 64 65 /** 66 * Invoked when a J2EE application is enabled. 67 * @throws AdminEventListenerException when the listener is unable to 68 * process the event. 69 */ 70 public void applicationEnabled(BaseDeployEvent event) 71 throws AdminEventListenerException; 72 73 /** 74 * Invoked when a J2EE application is disabled. 75 * @throws AdminEventListenerException when the listener is unable to 76 * process the event. 77 */ 78 public void applicationDisabled(BaseDeployEvent event) 79 throws AdminEventListenerException; 80 81 /** 82 * Invoked when an application reference is created from a 83 * server instance (or cluster) to a particular application. 84 * 85 * @throws AdminEventListenerException when the listener is unable to 86 * process the event. 87 */ 88 public void applicationReferenceAdded(BaseDeployEvent event) 89 throws AdminEventListenerException; 90 91 /** 92 * Invoked when a reference is removed from a 93 * server instance (or cluster) to a particular application. 94 * 95 * @throws AdminEventListenerException when the listener is unable to 96 * process the event. 97 */ 98 public void applicationReferenceRemoved(BaseDeployEvent event) 99 throws AdminEventListenerException; 100 101 /** 102 * Invoked when a standalone J2EE module is deployed. 103 * @throws AdminEventListenerException when the listener is unable to 104 * process the event. 105 */ 106 107 public void moduleDeployed(BaseDeployEvent event) 108 throws AdminEventListenerException; 109 110 /** 111 * Invoked when a standalone J2EE module is undeployed. 112 * @throws AdminEventListenerException when the listener is unable to 113 * process the event. 114 */ 115 public void moduleUndeployed(BaseDeployEvent event) 116 throws AdminEventListenerException; 117 118 /** 119 * Invoked when a standalone J2EE module is redeployed. 120 * @throws AdminEventListenerException when the listener is unable to 121 * process the event. 122 */ 123 public void moduleRedeployed(BaseDeployEvent event) 124 throws AdminEventListenerException; 125 126 /** 127 * Invoked when a standalone J2EE module is enabled. 128 * @throws AdminEventListenerException when the listener is unable to 129 * process the event. 130 */ 131 public void moduleEnabled(BaseDeployEvent event) 132 throws AdminEventListenerException; 133 134 /** 135 * Invoked when a standalone J2EE module is disabled. 136 * @throws AdminEventListenerException when the listener is unable to 137 * process the event. 138 */ 139 public void moduleDisabled(BaseDeployEvent event) 140 throws AdminEventListenerException; 141 142 /** 143 * Invoked when a reference is created from a 144 * server instance (or cluster) to a particular module. 145 * 146 * @throws AdminEventListenerException when the listener is unable to 147 * process the event. 148 */ 149 public void moduleReferenceAdded(BaseDeployEvent event) 150 throws AdminEventListenerException; 151 152 /** 153 * Invoked when a reference is removed from a 154 * server instance (or cluster) to a particular module. 155 * 156 * @throws AdminEventListenerException when the listener is unable to 157 * process the event. 158 */ 159 public void moduleReferenceRemoved(BaseDeployEvent event) 160 throws AdminEventListenerException; 161 162 /** 163 * Invoked when an application server resource is deployed. 164 * @throws AdminEventListenerException when the listener is unable to 165 * process the event. 166 */ 167 public void resourceDeployed(BaseDeployEvent event) 168 throws AdminEventListenerException; 169 170 /** 171 * Invoked when an application server resource is undeployed. 172 * @throws AdminEventListenerException when the listener is unable to 173 * process the event. 174 */ 175 public void resourceUndeployed(BaseDeployEvent event) 176 throws AdminEventListenerException; 177 178 /** 179 * Invoked when an application server resource is redeployed. 180 * @throws AdminEventListenerException when the listener is unable to 181 * process the event. 182 */ 183 public void resourceRedeployed(BaseDeployEvent event) 184 throws AdminEventListenerException; 185 186 /** 187 * Invoked when an application server resource is enabled. 188 * @throws AdminEventListenerException when the listener is unable to 189 * process the event. 190 */ 191 public void resourceEnabled(BaseDeployEvent event) 192 throws AdminEventListenerException; 193 194 /** 195 * Invoked when an application server resource is disabled. 196 * @throws AdminEventListenerException when the listener is unable to 197 * process the event. 198 */ 199 public void resourceDisabled(BaseDeployEvent event) 200 throws AdminEventListenerException; 201 202 /** 203 * Invoked when a resource reference is created from a 204 * server instance (or cluster) to a particular resource. 205 * 206 * @throws AdminEventListenerException when the listener is unable to 207 * process the event. 208 */ 209 public void resourceReferenceAdded(BaseDeployEvent event) 210 throws AdminEventListenerException; 211 212 /** 213 * Invoked when a resource reference is removed from a 214 * server instance (or cluster) to a particular resource. 215 * 216 * @throws AdminEventListenerException when the listener is unable to 217 * process the event. 218 */ 219 public void resourceReferenceRemoved(BaseDeployEvent event) 220 throws AdminEventListenerException; 221 222 } 223