01: /*
02: * Copyright 2002-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:
17: package org.springframework.web.bind.support;
18:
19: /**
20: * Simple interface that can be injected into handler methods, allowing them to
21: * signal that their session processing is complete. The handler invoker may
22: * then follow up with appropriate cleanup, e.g. of session attributes which
23: * have been implicitly created during this handler's processing (according to
24: * the
25: * {@link org.springframework.web.bind.annotation.SessionAttributes @SessionAttributes}
26: * annotation).
27: *
28: * @author Juergen Hoeller
29: * @since 2.5
30: * @see org.springframework.web.bind.annotation.RequestMapping
31: * @see org.springframework.web.bind.annotation.SessionAttributes
32: */
33: public interface SessionStatus {
34:
35: /**
36: * Mark the current handler's session processing as complete, allowing for
37: * cleanup of session attributes.
38: */
39: void setComplete();
40:
41: /**
42: * Return whether the current handler's session processing has been marked
43: * as complete.
44: */
45: boolean isComplete();
46:
47: }
|