KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > directwebremoting > annotations > ScriptScope


1 /*
2  * Copyright 2006 Maik Schreiber <blizzy AT blizzy DOT de>
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.directwebremoting.annotations;
17
18 import org.directwebremoting.extend.Creator;
19
20 /**
21  * A scripting scope.
22  * See {@link org.directwebremoting.extend.Creator} for details.
23  * @author Maik Schreiber <blizzy AT blizzy DOT de>
24  * @author Joe Walker [joe at getahead dot ltd dot uk]
25  */

26 public enum ScriptScope
27 {
28     /**
29      * @see Creator#APPLICATION
30      */

31     APPLICATION(Creator.APPLICATION),
32
33     /**
34      * @see Creator#SESSION
35      */

36     SESSION(Creator.SESSION),
37
38     /**
39      * @see Creator#SCRIPT
40      */

41     SCRIPT(Creator.SCRIPT),
42
43     /**
44      * @see Creator#REQUEST
45      */

46     REQUEST(Creator.REQUEST),
47
48     /**
49      * @see Creator#PAGE
50      */

51     PAGE(Creator.PAGE);
52
53     /**
54      * Link a ScriptScope to constant from Creator
55      * @param value The scope string constant
56      */

57     private ScriptScope(String JavaDoc value)
58     {
59         this.value = value;
60     }
61
62     /**
63      * Accessor for the scope string constant from Creator
64      * @return One of "application", "session", etc.
65      */

66     String JavaDoc getValue()
67     {
68         return value;
69     }
70
71     /**
72      * The scope constant value
73      */

74     private String JavaDoc value;
75 }
76
Popular Tags