KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > myfaces > config > impl > digester > elements > Application


1 /*
2  * Copyright 2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.apache.myfaces.config.impl.digester.elements;
17
18 import java.util.List JavaDoc;
19 import java.util.ArrayList JavaDoc;
20
21
22 /**
23  * @author <a HREF="mailto:oliver@rossmueller.com">Oliver Rossmueller</a>
24  */

25 public class Application
26 {
27
28     private List JavaDoc actionListener = new ArrayList JavaDoc();
29     private List JavaDoc defaultRenderkitId = new ArrayList JavaDoc();
30     private List JavaDoc messageBundle = new ArrayList JavaDoc();
31     private List JavaDoc navigationHandler = new ArrayList JavaDoc();
32     private List JavaDoc viewHandler = new ArrayList JavaDoc();
33     private List JavaDoc stateManager = new ArrayList JavaDoc();
34     private List JavaDoc propertyResolver = new ArrayList JavaDoc();
35     private List JavaDoc variableResolver = new ArrayList JavaDoc();
36     private List JavaDoc localeConfig = new ArrayList JavaDoc();
37
38
39     public void addActionListener(String JavaDoc listener)
40     {
41         actionListener.add(listener);
42     }
43
44
45     public void addDefaultRenderkitId(String JavaDoc id)
46     {
47         defaultRenderkitId.add(id);
48     }
49
50
51     public void addMessageBundle(String JavaDoc bundle)
52     {
53         messageBundle.add(bundle);
54     }
55
56
57     public void addNavigationHandler(String JavaDoc handler)
58     {
59         navigationHandler.add(handler);
60     }
61
62
63     public void addStateManager(String JavaDoc manager)
64     {
65         stateManager.add(manager);
66     }
67
68
69     public void addPropertyResolver(String JavaDoc resolver)
70     {
71         propertyResolver.add(resolver);
72     }
73
74
75     public void addVariableResolver(String JavaDoc handler)
76     {
77         variableResolver.add(handler);
78     }
79
80
81     public void addLocaleConfig(LocaleConfig config)
82     {
83         localeConfig.add(config);
84     }
85
86
87     public void addViewHandler(String JavaDoc handler)
88     {
89         viewHandler.add(handler);
90     }
91
92
93     public List JavaDoc getActionListener()
94     {
95         return actionListener;
96     }
97
98
99     public List JavaDoc getDefaultRenderkitId()
100     {
101         return defaultRenderkitId;
102     }
103
104
105     public List JavaDoc getMessageBundle()
106     {
107         return messageBundle;
108     }
109
110
111     public List JavaDoc getNavigationHandler()
112     {
113         return navigationHandler;
114     }
115
116
117     public List JavaDoc getViewHandler()
118     {
119         return viewHandler;
120     }
121
122
123     public List JavaDoc getStateManager()
124     {
125         return stateManager;
126     }
127
128
129     public List JavaDoc getPropertyResolver()
130     {
131         return propertyResolver;
132     }
133
134
135     public List JavaDoc getVariableResolver()
136     {
137         return variableResolver;
138     }
139
140
141     public List JavaDoc getLocaleConfig()
142     {
143         return localeConfig;
144     }
145 }
146
Popular Tags