KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > springframework > webflow > execution > FlowExecutionListenerAdapter


1 /*
2  * Copyright 2002-2006 the original author or authors.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.springframework.webflow.execution;
17
18 import org.springframework.webflow.core.collection.AttributeMap;
19 import org.springframework.webflow.core.collection.MutableAttributeMap;
20 import org.springframework.webflow.definition.FlowDefinition;
21 import org.springframework.webflow.definition.StateDefinition;
22
23 /**
24  * An abstract adapter class for listeners (observers) of flow execution
25  * lifecycle events. The methods in this class are empty. This class exists as
26  * convenience for creating listener objects; subclass it and override what you
27  * need.
28  *
29  * @author Erwin Vervaet
30  * @author Keith Donald
31  */

32 public abstract class FlowExecutionListenerAdapter implements FlowExecutionListener {
33
34     public void requestSubmitted(RequestContext context) {
35     }
36
37     public void requestProcessed(RequestContext context) {
38     }
39
40     public void sessionStarting(RequestContext context, FlowDefinition definition, MutableAttributeMap input) {
41     }
42
43     public void sessionStarted(RequestContext context, FlowSession session) {
44     }
45
46     public void eventSignaled(RequestContext context, Event event) {
47     }
48
49     public void stateEntering(RequestContext context, StateDefinition state) throws EnterStateVetoException {
50     }
51
52     public void stateEntered(RequestContext context, StateDefinition previousState, StateDefinition newState) {
53     }
54
55     public void resumed(RequestContext context) {
56     }
57
58     public void paused(RequestContext context, ViewSelection selectedView) {
59     }
60
61     public void sessionEnding(RequestContext context, FlowSession session, MutableAttributeMap output) {
62     }
63
64     public void sessionEnded(RequestContext context, FlowSession session, AttributeMap output) {
65     }
66
67     public void exceptionThrown(RequestContext context, FlowExecutionException exception) {
68     }
69
70 }
Popular Tags