01: /*
02: * Copyright 2004-2007 the original author or authors.
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.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
33: FlowExecutionListener {
34:
35: public void requestSubmitted(RequestContext context) {
36: }
37:
38: public void requestProcessed(RequestContext context) {
39: }
40:
41: public void sessionStarting(RequestContext context,
42: FlowDefinition definition, MutableAttributeMap input) {
43: }
44:
45: public void sessionCreated(RequestContext context,
46: FlowSession session) {
47: }
48:
49: public void sessionStarted(RequestContext context,
50: FlowSession session) {
51: }
52:
53: public void eventSignaled(RequestContext context, Event event) {
54: }
55:
56: public void stateEntering(RequestContext context,
57: StateDefinition state) throws EnterStateVetoException {
58: }
59:
60: public void stateEntered(RequestContext context,
61: StateDefinition previousState, StateDefinition newState) {
62: }
63:
64: public void resumed(RequestContext context) {
65: }
66:
67: public void paused(RequestContext context,
68: ViewSelection selectedView) {
69: }
70:
71: public void sessionEnding(RequestContext context,
72: FlowSession session, MutableAttributeMap output) {
73: }
74:
75: public void sessionEnded(RequestContext context,
76: FlowSession session, AttributeMap output) {
77: }
78:
79: public void exceptionThrown(RequestContext context,
80: FlowExecutionException exception) {
81: }
82:
83: }
|