Skip to content

Package: ELContextEvent

ELContextEvent

nameinstructionbranchcomplexitylinemethod
ELContextEvent(ELContext)
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
getELContext()
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /*
2: * Copyright (c) 1997, 2019 Oracle and/or its affiliates and others.
3: * All rights reserved.
4: * Copyright 2004 The Apache Software Foundation
5: *
6: * Licensed under the Apache License, Version 2.0 (the "License");
7: * you may not use this file except in compliance with the License.
8: * You may obtain a copy of the License at
9: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing, software
13: * distributed under the License is distributed on an "AS IS" BASIS,
14: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15: * See the License for the specific language governing permissions and
16: * limitations under the License.
17: */
18:
19: package jakarta.el;
20:
21: import java.util.EventObject;
22:
23: /**
24: * An event which indicates that an {@link ELContext} has been created. The source object is the ELContext that was
25: * created.
26: *
27: * @see ELContext
28: * @see ELContextListener
29: *
30: * @since Jakarta Server Pages 2.1
31: */
32: public class ELContextEvent extends EventObject {
33:
34: private static final long serialVersionUID = 1255131906285426769L;
35:
36: /**
37: * Constructs an ELContextEvent object to indicate that an <code>ELContext</code> has been created.
38: *
39: * @param source the <code>ELContext</code> that was created.
40: */
41: public ELContextEvent(ELContext source) {
42: super(source);
43: }
44:
45: /**
46: * Returns the <code>ELContext</code> that was created. This is a type-safe equivalent of the {@link #getSource} method.
47: *
48: * @return the ELContext that was created.
49: */
50: public ELContext getELContext() {
51: return (ELContext) getSource();
52: }
53: }