1 |
| |
2 |
| |
3 |
| |
4 |
| |
5 |
| |
6 |
| |
7 |
| |
8 |
| |
9 |
| |
10 |
| |
11 |
| |
12 |
| |
13 |
| |
14 |
| |
15 |
| package org.apache.tapestry.engine; |
16 |
| |
17 |
| import org.apache.hivemind.ErrorHandler; |
18 |
| import org.apache.tapestry.record.PropertyPersistenceStrategySource; |
19 |
| import org.apache.tapestry.request.RequestContext; |
20 |
| import org.apache.tapestry.services.AbsoluteURLBuilder; |
21 |
| import org.apache.tapestry.services.Infrastructure; |
22 |
| |
23 |
| |
24 |
| |
25 |
| |
26 |
| |
27 |
| |
28 |
| |
29 |
| |
30 |
| |
31 |
| public class RequestCycleEnvironment |
32 |
| { |
33 |
| private Infrastructure _infrastructure; |
34 |
| |
35 |
| private PropertyPersistenceStrategySource _strategySource; |
36 |
| |
37 |
| private AbsoluteURLBuilder _absoluteURLBuilder; |
38 |
| |
39 |
| private ErrorHandler _errorHandler; |
40 |
| |
41 |
| private RequestContext _requestContext; |
42 |
| |
43 |
41
| public RequestCycleEnvironment(ErrorHandler errorHandler, Infrastructure infrastructure,
|
44 |
| RequestContext requestContext, PropertyPersistenceStrategySource strategySource, |
45 |
| AbsoluteURLBuilder absoluteURLBuilder) |
46 |
| { |
47 |
41
| _errorHandler = errorHandler;
|
48 |
41
| _infrastructure = infrastructure;
|
49 |
41
| _requestContext = requestContext;
|
50 |
41
| _strategySource = strategySource;
|
51 |
41
| _absoluteURLBuilder = absoluteURLBuilder;
|
52 |
| } |
53 |
| |
54 |
125
| public AbsoluteURLBuilder getAbsoluteURLBuilder()
|
55 |
| { |
56 |
125
| return _absoluteURLBuilder;
|
57 |
| } |
58 |
| |
59 |
125
| public ErrorHandler getErrorHandler()
|
60 |
| { |
61 |
125
| return _errorHandler;
|
62 |
| } |
63 |
| |
64 |
125
| public Infrastructure getInfrastructure()
|
65 |
| { |
66 |
125
| return _infrastructure;
|
67 |
| } |
68 |
| |
69 |
125
| public PropertyPersistenceStrategySource getStrategySource()
|
70 |
| { |
71 |
125
| return _strategySource;
|
72 |
| } |
73 |
| |
74 |
125
| public RequestContext getRequestContext()
|
75 |
| { |
76 |
125
| return _requestContext;
|
77 |
| } |
78 |
| } |