1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
|
18 | |
|
19 | |
package org.apache.myfaces.config.impl.digester.elements; |
20 | |
|
21 | |
import java.io.Serializable; |
22 | |
import java.util.ArrayList; |
23 | |
import java.util.List; |
24 | |
import org.apache.myfaces.config.element.ContractMapping; |
25 | |
|
26 | |
|
27 | |
|
28 | |
|
29 | 0 | public class ApplicationImpl extends org.apache.myfaces.config.element.Application implements Serializable |
30 | |
{ |
31 | |
|
32 | 0 | private final List<String> actionListener = new ArrayList<String>(); |
33 | 0 | private final List<String> defaultRenderkitId = new ArrayList<String>(); |
34 | 0 | private final List<String> defaultValidatorIds = new ArrayList<String>(); |
35 | 0 | private final List<String> messageBundle = new ArrayList<String>(); |
36 | 0 | private final List<String> navigationHandler = new ArrayList<String>(); |
37 | 0 | private final List<String> partialTraversal = new ArrayList<String>(); |
38 | 0 | private final List<String> resourceHandler = new ArrayList<String>(); |
39 | 0 | private final List<String> viewHandler = new ArrayList<String>(); |
40 | 0 | private final List<String> stateManager = new ArrayList<String>(); |
41 | 0 | private final List<String> propertyResolver = new ArrayList<String>(); |
42 | 0 | private final List<String> variableResolver = new ArrayList<String>(); |
43 | 0 | private final List<org.apache.myfaces.config.element.LocaleConfig> localeConfig |
44 | |
= new ArrayList<org.apache.myfaces.config.element.LocaleConfig>(); |
45 | 0 | private final List<String> elResolver = new ArrayList<String>(); |
46 | 0 | private final List<org.apache.myfaces.config.element.ResourceBundle> resourceBundle |
47 | |
= new ArrayList<org.apache.myfaces.config.element.ResourceBundle>(); |
48 | 0 | private final List<org.apache.myfaces.config.element.SystemEventListener> systemEventListeners |
49 | |
= new ArrayList<org.apache.myfaces.config.element.SystemEventListener>(); |
50 | 0 | private final List<ContractMapping> resourceLibraryContractMappings |
51 | |
= new ArrayList<ContractMapping>(); |
52 | |
|
53 | 0 | private boolean defaultValidatorsPresent = false; |
54 | |
|
55 | |
public void addActionListener(String listener) |
56 | |
{ |
57 | 0 | actionListener.add(listener); |
58 | 0 | } |
59 | |
|
60 | |
public void addDefaultRenderkitId(String id) |
61 | |
{ |
62 | 0 | defaultRenderkitId.add(id); |
63 | 0 | } |
64 | |
|
65 | |
public void addDefaultValidatorId (String id) |
66 | |
{ |
67 | 0 | defaultValidatorIds.add (id); |
68 | 0 | } |
69 | |
|
70 | |
public void addMessageBundle(String bundle) |
71 | |
{ |
72 | 0 | messageBundle.add(bundle); |
73 | 0 | } |
74 | |
|
75 | |
public void addNavigationHandler(String handler) |
76 | |
{ |
77 | 0 | navigationHandler.add(handler); |
78 | 0 | } |
79 | |
|
80 | |
public void addPartialTraversal (String traversal) |
81 | |
{ |
82 | 0 | partialTraversal.add (traversal); |
83 | 0 | } |
84 | |
|
85 | |
public void addStateManager(String manager) |
86 | |
{ |
87 | 0 | stateManager.add(manager); |
88 | 0 | } |
89 | |
|
90 | |
public void addSystemEventListener (org.apache.myfaces.config.element.SystemEventListener systemEventListener) |
91 | |
{ |
92 | 0 | systemEventListeners.add (systemEventListener); |
93 | 0 | } |
94 | |
|
95 | |
public void addPropertyResolver(String resolver) |
96 | |
{ |
97 | 0 | propertyResolver.add(resolver); |
98 | 0 | } |
99 | |
|
100 | |
public void addVariableResolver(String handler) |
101 | |
{ |
102 | 0 | variableResolver.add(handler); |
103 | 0 | } |
104 | |
|
105 | |
public void addLocaleConfig(org.apache.myfaces.config.element.LocaleConfig config) |
106 | |
{ |
107 | 0 | localeConfig.add(config); |
108 | 0 | } |
109 | |
|
110 | |
public void addResourceHandler(String handler) |
111 | |
{ |
112 | 0 | resourceHandler.add(handler); |
113 | 0 | } |
114 | |
|
115 | |
public void addViewHandler(String handler) |
116 | |
{ |
117 | 0 | viewHandler.add(handler); |
118 | 0 | } |
119 | |
|
120 | |
public void addElResolver(String handler) |
121 | |
{ |
122 | 0 | elResolver.add(handler); |
123 | 0 | } |
124 | |
|
125 | |
public void addResourceBundle(org.apache.myfaces.config.element.ResourceBundle bundle) |
126 | |
{ |
127 | 0 | resourceBundle.add(bundle); |
128 | 0 | } |
129 | |
|
130 | |
public List<String> getActionListener() |
131 | |
{ |
132 | 0 | return actionListener; |
133 | |
} |
134 | |
|
135 | |
public List<String> getDefaultRenderkitId() |
136 | |
{ |
137 | 0 | return defaultRenderkitId; |
138 | |
} |
139 | |
|
140 | |
public List<String> getDefaultValidatorIds() |
141 | |
{ |
142 | 0 | return defaultValidatorIds; |
143 | |
} |
144 | |
|
145 | |
public List<String> getMessageBundle() |
146 | |
{ |
147 | 0 | return messageBundle; |
148 | |
} |
149 | |
|
150 | |
public List<String> getNavigationHandler() |
151 | |
{ |
152 | 0 | return navigationHandler; |
153 | |
} |
154 | |
|
155 | |
public List<String> getPartialTraversal () |
156 | |
{ |
157 | 0 | return partialTraversal; |
158 | |
} |
159 | |
|
160 | |
public List<String> getResourceHandler() |
161 | |
{ |
162 | 0 | return resourceHandler; |
163 | |
} |
164 | |
|
165 | |
public List<org.apache.myfaces.config.element.SystemEventListener> getSystemEventListeners () |
166 | |
{ |
167 | 0 | return systemEventListeners; |
168 | |
} |
169 | |
|
170 | |
public List<String> getViewHandler() |
171 | |
{ |
172 | 0 | return viewHandler; |
173 | |
} |
174 | |
|
175 | |
public List<String> getStateManager() |
176 | |
{ |
177 | 0 | return stateManager; |
178 | |
} |
179 | |
|
180 | |
public List<String> getPropertyResolver() |
181 | |
{ |
182 | 0 | return propertyResolver; |
183 | |
} |
184 | |
|
185 | |
public List<String> getVariableResolver() |
186 | |
{ |
187 | 0 | return variableResolver; |
188 | |
} |
189 | |
|
190 | |
public List<org.apache.myfaces.config.element.LocaleConfig> getLocaleConfig() |
191 | |
{ |
192 | 0 | return localeConfig; |
193 | |
} |
194 | |
|
195 | |
public List<String> getElResolver() |
196 | |
{ |
197 | 0 | return elResolver; |
198 | |
} |
199 | |
|
200 | |
public List<org.apache.myfaces.config.element.ResourceBundle> getResourceBundle() |
201 | |
{ |
202 | 0 | return resourceBundle; |
203 | |
} |
204 | |
|
205 | |
public boolean isDefaultValidatorsPresent() |
206 | |
{ |
207 | 0 | return defaultValidatorsPresent; |
208 | |
} |
209 | |
|
210 | |
public void setDefaultValidatorsPresent() |
211 | |
{ |
212 | 0 | defaultValidatorsPresent = true; |
213 | 0 | } |
214 | |
|
215 | |
@Override |
216 | |
public List<ContractMapping> getResourceLibraryContractMappings() |
217 | |
{ |
218 | 0 | return resourceLibraryContractMappings; |
219 | |
} |
220 | |
|
221 | |
public void addResourceLibraryContractMapping(ContractMapping mapping) |
222 | |
{ |
223 | 0 | resourceLibraryContractMappings.add(mapping); |
224 | 0 | } |
225 | |
} |