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