|
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.IEngine; |
|
19 |
| import org.apache.tapestry.record.PropertyPersistenceStrategySource; |
|
20 |
| import org.apache.tapestry.services.AbsoluteURLBuilder; |
|
21 |
| import org.apache.tapestry.services.Infrastructure; |
|
22 |
| import org.apache.tapestry.util.QueryParameterMap; |
|
23 |
| |
|
24 |
| |
|
25 |
| |
|
26 |
| |
|
27 |
| |
|
28 |
| |
|
29 |
| |
|
30 |
| |
|
31 |
| |
|
32 |
| public class RequestCycleEnvironment |
|
33 |
| { |
|
34 |
| private final Infrastructure _infrastructure; |
|
35 |
| |
|
36 |
| private final PropertyPersistenceStrategySource _strategySource; |
|
37 |
| |
|
38 |
| private final AbsoluteURLBuilder _absoluteURLBuilder; |
|
39 |
| |
|
40 |
| private final ErrorHandler _errorHandler; |
|
41 |
| |
|
42 |
123
| public RequestCycleEnvironment(ErrorHandler errorHandler, Infrastructure infrastructure,
|
|
43 |
| PropertyPersistenceStrategySource strategySource, AbsoluteURLBuilder absoluteURLBuilder) |
|
44 |
| { |
|
45 |
123
| _errorHandler = errorHandler;
|
|
46 |
123
| _infrastructure = infrastructure;
|
|
47 |
123
| _strategySource = strategySource;
|
|
48 |
123
| _absoluteURLBuilder = absoluteURLBuilder;
|
|
49 |
| } |
|
50 |
| |
|
51 |
375
| public AbsoluteURLBuilder getAbsoluteURLBuilder()
|
|
52 |
| { |
|
53 |
375
| return _absoluteURLBuilder;
|
|
54 |
| } |
|
55 |
| |
|
56 |
375
| public ErrorHandler getErrorHandler()
|
|
57 |
| { |
|
58 |
375
| return _errorHandler;
|
|
59 |
| } |
|
60 |
| |
|
61 |
375
| public Infrastructure getInfrastructure()
|
|
62 |
| { |
|
63 |
375
| return _infrastructure;
|
|
64 |
| } |
|
65 |
| |
|
66 |
375
| public PropertyPersistenceStrategySource getStrategySource()
|
|
67 |
| { |
|
68 |
375
| return _strategySource;
|
|
69 |
| } |
|
70 |
| } |