|
What this is
Other links
The source code/* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License * Version 1.0 (the "License"). You may not use this file except in * compliance with the License. A copy of the License is available at * http://www.sun.com/ * * The Original Code is NetBeans. The Initial Developer of the Original * Code is Sun Microsystems, Inc. Portions Copyright 1997-2002 Sun * Microsystems, Inc. All Rights Reserved. */ package org.netbeans.modules.web.dd.event; import org.netbeans.modules.web.dd.DDDataObject; /** DDChangeEvent describes the change that affects deployment of web application. * Deployment descriptor object can listen to these changes * and update its configuration according to change. * * @author Radim Kubacki */ public class DDChangeEvent extends java.util.EventObject { /** Event fired when new servlet is added or copied from another location */ public static final int SERVLET_ADDED = 1; /** Event fired when servlet is renamed or moved within one web module */ public static final int SERVLET_CHANGED = 2; /** Event fired when servlet is deleted */ public static final int SERVLET_DELETED = 3; // delete /** Event fired when servlet is moved from one web module to another one */ public static final int SERVLET_MOVED = 4; /** Event fired when new filter is added or copied from another location */ //public static final int FILTER_ADDED = 5; /** Event fired when filter is renamed or moved within one web module */ public static final int FILTER_CHANGED = 6; /** Event fired when filter is deleted */ public static final int FILTER_DELETED = 7; /** Event fired when listener is moved from one web module to another one */ //public static final int FILTER_MOVED = 8; /** Event fired when new listener is added or copied from another location */ //public static final int LISTENER_ADDED = 9; /** Event fired when listener is renamed or moved within one web module */ public static final int LISTENER_CHANGED = 10; /** Event fired when listener is deleted */ public static final int LISTENER_DELETED = 11; /** Event fired when listener is moved from one web module to another one */ //public static final int LISTENER_MOVED = 12; /** Event fired when new JSP is added or copied from another location */ //public static final int JSP_ADDED = 13; /** Event fired when JSP is renamed or moved within one web module */ public static final int JSP_CHANGED = 14; /** Event fired when JSP is deleted */ public static final int JSP_DELETED = 15; /** Event fired when JSP is moved from one web module to another one */ //public static final int JSP_MOVED = 16; /** Newly set value. Usually current classname of servlet if it makes sense. */ private String newValue; /** Old value. Usually old classname of servlet if it makes sense. */ private String oldValue; /** Event type */ private int type; /** placeholder for old depl. descriptor (only for servlet moves) */ private DDDataObject oldDD; /** Creates new event. * * @param src class name of servlet * @param type type of change */ public DDChangeEvent (Object src, DDDataObject oldDD, String oldVal, String newVal, int type) { super (src); newValue = newVal; oldValue = oldVal; this.type = type; this.oldDD = oldDD; } /** Creates new event. * * @param src class name of servlet * @param type type of change */ public DDChangeEvent (Object src, String oldVal, String newVal, int type) { this (src, null, oldVal, newVal, type); } public String getNewValue () { return newValue; } public String getOldValue () { return oldValue; } public DDDataObject getOldDD () { return oldDD; } /** Getter for change type * * @return change type */ public int getType () { return type; } public String toString () { return "DDChangeEvent "+getSource ()+" of type "+type; // NOI18N } } |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.