1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package javax.faces.internal.scope; |
17 | |
|
18 | |
import java.util.Map; |
19 | |
|
20 | |
import javax.faces.FacesException; |
21 | |
import javax.faces.context.FacesContext; |
22 | |
|
23 | |
|
24 | |
|
25 | |
|
26 | |
|
27 | |
public abstract class PageScope { |
28 | |
|
29 | 1 | private static final VariableScope scope = new VariableScope( |
30 | 1 | PageScope.class.getName()); |
31 | |
|
32 | 0 | protected PageScope() { |
33 | 0 | } |
34 | |
|
35 | |
public static Map getOrCreateContext(FacesContext context) |
36 | |
throws FacesException { |
37 | 2 | return scope.getOrCreateContext(context); |
38 | |
} |
39 | |
|
40 | |
public static Map getContext(FacesContext context) throws FacesException { |
41 | 0 | return scope.getContext(context); |
42 | |
} |
43 | |
|
44 | |
public static void removeContext(FacesContext context) |
45 | |
throws FacesException { |
46 | 0 | scope.clearContext(context); |
47 | 0 | } |
48 | |
|
49 | |
public static void removeContext(FacesContext context, String wid) |
50 | |
throws FacesException { |
51 | 1 | scope.clearContext(context, wid); |
52 | 1 | } |
53 | |
} |