01: /**
02: * Copyright 2006 Webmedia Group Ltd.
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: **/package org.araneaframework.framework;
16:
17: import java.io.Serializable;
18:
19: /**
20: * A context for supporting multiple threads (windows) inside a single session. When
21: * a user opens a new window there needs to be means to have a different set of child
22: * services and widgets for the new window but the session should remain the same.
23: * <p>
24: * {@link org.araneaframework.framework.router.StandardThreadServiceRouterService} adds a
25: * ThreadContext.class to the environment for the children to be able to access.
26: * </p>
27: *
28: * @author "Toomas Römer" <toomas@webmedia.ee>
29: * @author Jevgeni Kabanov (ekabanov <i>at</i> araneaframework <i>dot</i> org)
30: */
31: public interface ThreadContext extends ManagedServiceContext,
32: Serializable {
33: /**
34: * The key of the thread-service's id in the request.
35: */
36: public static final String THREAD_SERVICE_KEY = "araThreadServiceId";
37: public static final String KEEPALIVE_KEY = "araThreadServiceKeepAlive";
38: }
|