01: /*
02: * Copyright 2005 Joe Walker
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16: package org.directwebremoting.event;
17:
18: import java.util.EventObject;
19:
20: import org.directwebremoting.ScriptSession;
21:
22: /**
23: * This is the class representing event notifications for changes to script
24: * sessions within a web application.
25: * @author Joe Walker [joe at getahead dot ltd dot uk]
26: */
27: public class ScriptSessionEvent extends EventObject {
28: /**
29: * Construct a session event from the given source.
30: * @param source The ScriptSession that is being created/destroyed
31: */
32: public ScriptSessionEvent(ScriptSession source) {
33: super (source);
34: }
35:
36: /**
37: * Return the session that changed.
38: * @return The newly created/destroyed ScriptSession
39: */
40: public ScriptSession getSession() {
41: return (ScriptSession) super.getSource();
42: }
43: }
|