View Javadoc

1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one
3    * or more contributor license agreements.  See the NOTICE file
4    * distributed with this work for additional information
5    * regarding copyright ownership.  The ASF licenses this file
6    * to you under the Apache License, Version 2.0 (the
7    * "License"); you may not use this file except in compliance
8    * with the License.  You may obtain a copy of the License at
9    *
10   *   http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing,
13   * software distributed under the License is distributed on an
14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   * KIND, either express or implied.  See the License for the
16   * specific language governing permissions and limitations
17   * under the License.
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  
25  /**
26   * @author <a href="mailto:oliver@rossmueller.com">Oliver Rossmueller</a>
27   */
28  public class FactoryImpl extends org.apache.myfaces.config.element.Factory implements Serializable
29  {
30      private List<String> applicationFactories = new ArrayList<String>();
31      private List<String> exceptionHandlerFactories = new ArrayList<String>();
32      private List<String> externalContextFactories = new ArrayList<String>();
33      private List<String> facesContextFactories = new ArrayList<String>();
34      private List<String> lifecycleFactories = new ArrayList<String>();
35      private List<String> ViewDeclarationLanguageFactories = new ArrayList<String>();
36      private List<String> partialViewContextFactories = new ArrayList<String>();
37      private List<String> renderKitFactories = new ArrayList<String>();
38      private List<String> tagHandlerDelegateFactories = new ArrayList<String>();
39      private List<String> visitContextFactories = new ArrayList<String>();
40      private List<String> faceletCacheFactories = new ArrayList<String>();
41      private List<String> flowHandlerFactories = new ArrayList<String>();
42      private List<String> flashFactories = new ArrayList<String>();
43      private List<String> clientWindowFactories = new ArrayList<String>();
44      private List<String> searchExpressionContextFactories = new ArrayList<String>();
45  
46      public void addApplicationFactory(String factory)
47      {
48          applicationFactories.add(factory);
49      }
50  
51      public void addExceptionHandlerFactory(String factory)
52      {
53          exceptionHandlerFactories.add(factory);
54      }
55  
56      public void addExternalContextFactory(String factory)
57      {
58          externalContextFactories.add(factory);
59      }
60  
61      public void addFacesContextFactory(String factory)
62      {
63          facesContextFactories.add(factory);
64      }
65  
66      public void addLifecycleFactory(String factory)
67      {
68          lifecycleFactories.add(factory);
69      }
70  
71      public void addViewDeclarationLanguageFactory(String factory)
72      {
73          ViewDeclarationLanguageFactories.add(factory);
74      }
75  
76      public void addPartialViewContextFactory(String factory)
77      {
78          partialViewContextFactories.add(factory);
79      }
80  
81      public void addRenderkitFactory(String factory)
82      {
83          renderKitFactories.add(factory);
84      }
85  
86      public void addTagHandlerDelegateFactory(String factory)
87      {
88          tagHandlerDelegateFactories.add(factory);
89      }
90  
91      public void addVisitContextFactory(String factory)
92      {
93          visitContextFactories.add(factory);
94      }
95      
96      public void addFaceletCacheFactory(String factory)
97      {
98          faceletCacheFactories.add(factory);
99      }
100 
101     public void addFlashFactory(String factory)
102     {
103         flashFactories.add(factory);
104     }
105     
106     public void addFlowHandlerFactory(String factory)
107     {
108         flowHandlerFactories.add(factory);
109     }
110 
111     public void addClientWindowFactory(String factory)
112     {
113         clientWindowFactories.add(factory);
114     }
115     
116     public List<String> getApplicationFactory()
117     {
118         return applicationFactories;
119     }
120 
121     public List<String> getExceptionHandlerFactory()
122     {
123         return exceptionHandlerFactories;
124     }
125 
126     public List<String> getExternalContextFactory()
127     {
128         return externalContextFactories;
129     }
130 
131     public List<String> getFacesContextFactory()
132     {
133         return facesContextFactories;
134     }
135 
136     public List<String> getLifecycleFactory()
137     {
138         return lifecycleFactories;
139     }
140 
141     public List<String> getViewDeclarationLanguageFactory()
142     {
143         return ViewDeclarationLanguageFactories;
144     }
145 
146     public List<String> getPartialViewContextFactory()
147     {
148         return partialViewContextFactories;
149     }
150 
151     public List<String> getRenderkitFactory()
152     {
153         return renderKitFactories;
154     }
155 
156     public List<String> getTagHandlerDelegateFactory()
157     {
158         return tagHandlerDelegateFactories;
159     }
160 
161     public List<String> getVisitContextFactory()
162     {
163         return visitContextFactories;
164     }
165 
166     @Override
167     public List<String> getFaceletCacheFactory()
168     {
169         return faceletCacheFactories;
170     }
171 
172     @Override
173     public List<String> getFlashFactory()
174     {
175         return flashFactories;
176     }
177 
178     @Override
179     public List<String> getFlowHandlerFactory()
180     {
181         return flowHandlerFactories;
182     }
183 
184     @Override
185     public List<String> getClientWindowFactory()
186     {
187         return clientWindowFactories;
188     }
189     
190     public void addSearchExpressionContextFactory(String factory)
191     {
192         searchExpressionContextFactories.add(factory);
193     }
194     
195     @Override
196     public List<String> getSearchExpressionContextFactory()
197     {
198         return searchExpressionContextFactories;
199     }
200 
201 }