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 * events related to standalone J2EE module deployment (deployed, undeployed, 36 * redeployed, enabled and disabled). 37 */ 38 public interface ModuleDeployEventListener extends AdminEventListener { 39 40 /** 41 * Invoked when a standalone J2EE module is deployed. 42 */ 43 public void moduleDeployed(ModuleDeployEvent event) 44 throws AdminEventListenerException; 45 46 /** 47 * Invoked when a standalone J2EE module is undeployed. 48 * @throws AdminEventListenerException when the listener is unable to 49 * process the event. 50 */ 51 public void moduleUndeployed(ModuleDeployEvent event) 52 throws AdminEventListenerException; 53 54 /** 55 * Invoked when a standalone J2EE module is redeployed. 56 * @throws AdminEventListenerException when the listener is unable to 57 * process the event. 58 */ 59 public void moduleRedeployed(ModuleDeployEvent event) 60 throws AdminEventListenerException; 61 62 /** 63 * Invoked when a standalone J2EE module is enabled. 64 * @throws AdminEventListenerException when the listener is unable to 65 * process the event. 66 */ 67 public void moduleEnabled(ModuleDeployEvent event) 68 throws AdminEventListenerException; 69 70 /** 71 * Invoked when a standalone J2EE module is disabled. 72 * @throws AdminEventListenerException when the listener is unable to 73 * process the event. 74 */ 75 public void moduleDisabled(ModuleDeployEvent event) 76 throws AdminEventListenerException; 77 78 /** 79 * Invoked when a reference is created from a 80 * server instance (or cluster) to a particular module. 81 * 82 * @throws AdminEventListenerException when the listener is unable to 83 * process the event. 84 */ 85 public void moduleReferenceAdded(ModuleDeployEvent event) 86 throws AdminEventListenerException; 87 88 /** 89 * Invoked when a reference is removed from a 90 * server instance (or cluster) to a particular module. 91 * 92 * @throws AdminEventListenerException when the listener is unable to 93 * process the event. 94 */ 95 public void moduleReferenceRemoved(ModuleDeployEvent event) 96 throws AdminEventListenerException; 97 98 99 } 100