01: /*
02: * The contents of this file are subject to the terms
03: * of the Common Development and Distribution License
04: * (the "License"). You may not use this file except
05: * in compliance with the License.
06: *
07: * You can obtain a copy of the license at
08: * glassfish/bootstrap/legal/CDDLv1.0.txt or
09: * https://glassfish.dev.java.net/public/CDDLv1.0.html.
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 in each file and include the License file at
15: * glassfish/bootstrap/legal/CDDLv1.0.txt. If applicable,
16: * add the following below this CDDL HEADER, with the
17: * fields enclosed by brackets "[]" replaced with your
18: * own identifying information: Portions Copyright [yyyy]
19: * [name of copyright owner]
20: *
21: * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
22: */
23:
24: package javax.el;
25:
26: /**
27: * An event which indicates that an {@link ELContext} has been created.
28: * The source object is the ELContext that was created.
29: *
30: * @see ELContext
31: * @see ELContextListener
32: * @since JSP 2.1
33: */
34: public class ELContextEvent extends java.util.EventObject {
35:
36: /**
37: * Constructs an ELContextEvent object to indicate that an
38: * <code>ELContext</code> has been created.
39: *
40: * @param source the <code>ELContext</code> that was created.
41: */
42: public ELContextEvent(ELContext source) {
43: super (source);
44: }
45:
46: /**
47: * Returns the <code>ELContext</code> that was created.
48: * This is a type-safe equivalent of the {@link #getSource} method.
49: *
50: * @return the ELContext that was created.
51: */
52: public ELContext getELContext() {
53: return (ELContext) getSource();
54: }
55: }
|