KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > springframework > webflow > config > RepositoryType


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.config;
17
18 import org.springframework.core.enums.StaticLabeledEnum;
19 import org.springframework.webflow.execution.repository.continuation.ClientContinuationFlowExecutionRepository;
20 import org.springframework.webflow.execution.repository.continuation.ContinuationFlowExecutionRepository;
21 import org.springframework.webflow.execution.repository.support.SimpleFlowExecutionRepository;
22
23 /**
24  * Type-safe enumeration of logical flow execution repository types.
25  *
26  * @see org.springframework.webflow.execution.repository.FlowExecutionRepository
27  *
28  * @author Keith Donald
29  */

30 public class RepositoryType extends StaticLabeledEnum {
31
32     /**
33      * The 'simple' flow execution repository type.
34      * @see SimpleFlowExecutionRepository
35      */

36     public static RepositoryType SIMPLE = new RepositoryType(0, "Simple");
37
38     /**
39      * The 'continuation' flow execution repository type.
40      * @see ContinuationFlowExecutionRepository
41      */

42     public static RepositoryType CONTINUATION = new RepositoryType(1, "Continuation");
43
44     /**
45      * The 'client' (continuation) flow execution repository type.
46      * @see ClientContinuationFlowExecutionRepository
47      */

48     public static RepositoryType CLIENT = new RepositoryType(2, "Client");
49
50     /**
51      * The 'singleKey' flow execution repository type.
52      * @see SimpleFlowExecutionRepository
53      * @see SimpleFlowExecutionRepository#setAlwaysGenerateNewNextKey(boolean)
54      */

55     public static RepositoryType SINGLEKEY = new RepositoryType(3, "Single Key");
56     
57     /**
58      * Private constructor because this is a typesafe enum!
59      */

60     private RepositoryType(int code, String JavaDoc label) {
61         super(code, label);
62     }
63 }
Popular Tags