1 |
| |
2 |
| |
3 |
| |
4 |
| |
5 |
| |
6 |
| |
7 |
| |
8 |
| |
9 |
| |
10 |
| |
11 |
| |
12 |
| |
13 |
| |
14 |
| |
15 |
| package org.apache.tapestry.services.impl; |
16 |
| |
17 |
| import java.util.List; |
18 |
| |
19 |
| import org.apache.tapestry.services.ApplicationGlobals; |
20 |
| import org.apache.tapestry.spec.IApplicationSpecification; |
21 |
| import org.apache.tapestry.web.WebActivator; |
22 |
| import org.apache.tapestry.web.WebContext; |
23 |
| |
24 |
| |
25 |
| |
26 |
| |
27 |
| |
28 |
| |
29 |
| |
30 |
| public class ApplicationGlobalsImpl implements ApplicationGlobals |
31 |
| { |
32 |
| private WebActivator _activator; |
33 |
| |
34 |
| private IApplicationSpecification _specification; |
35 |
| |
36 |
| private WebContext _webContext; |
37 |
| |
38 |
| private List _factoryServices; |
39 |
| |
40 |
46
| public void storeActivator(WebActivator activator)
|
41 |
| { |
42 |
46
| _activator = activator;
|
43 |
| } |
44 |
| |
45 |
46
| public void storeSpecification(IApplicationSpecification applicationSpecification)
|
46 |
| { |
47 |
46
| _specification = applicationSpecification;
|
48 |
| } |
49 |
| |
50 |
56
| public WebActivator getActivator()
|
51 |
| { |
52 |
56
| return _activator;
|
53 |
| } |
54 |
| |
55 |
44
| public IApplicationSpecification getSpecification()
|
56 |
| { |
57 |
44
| return _specification;
|
58 |
| } |
59 |
| |
60 |
41
| public String getActivatorName()
|
61 |
| { |
62 |
41
| return _activator.getActivatorName();
|
63 |
| } |
64 |
| |
65 |
1972
| public WebContext getWebContext()
|
66 |
| { |
67 |
1972
| return _webContext;
|
68 |
| } |
69 |
| |
70 |
41
| public void storeContext(WebContext context)
|
71 |
| { |
72 |
41
| _webContext = context;
|
73 |
| } |
74 |
| |
75 |
41
| public void storeFactoryServices(List factoryServices)
|
76 |
| { |
77 |
41
| _factoryServices = factoryServices;
|
78 |
| } |
79 |
| |
80 |
41
| public List getFactoryServices()
|
81 |
| { |
82 |
41
| return _factoryServices;
|
83 |
| } |
84 |
| } |