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  
45      public void addApplicationFactory(String factory)
46      {
47          applicationFactories.add(factory);
48      }
49  
50      public void addExceptionHandlerFactory(String factory)
51      {
52          exceptionHandlerFactories.add(factory);
53      }
54  
55      public void addExternalContextFactory(String factory)
56      {
57          externalContextFactories.add(factory);
58      }
59  
60      public void addFacesContextFactory(String factory)
61      {
62          facesContextFactories.add(factory);
63      }
64  
65      public void addLifecycleFactory(String factory)
66      {
67          lifecycleFactories.add(factory);
68      }
69  
70      public void addViewDeclarationLanguageFactory(String factory)
71      {
72          ViewDeclarationLanguageFactories.add(factory);
73      }
74  
75      public void addPartialViewContextFactory(String factory)
76      {
77          partialViewContextFactories.add(factory);
78      }
79  
80      public void addRenderkitFactory(String factory)
81      {
82          renderKitFactories.add(factory);
83      }
84  
85      public void addTagHandlerDelegateFactory(String factory)
86      {
87          tagHandlerDelegateFactories.add(factory);
88      }
89  
90      public void addVisitContextFactory(String factory)
91      {
92          visitContextFactories.add(factory);
93      }
94      
95      public void addFaceletCacheFactory(String factory)
96      {
97          faceletCacheFactories.add(factory);
98      }
99  
100     public void addFlashFactory(String factory)
101     {
102         flashFactories.add(factory);
103     }
104     
105     public void addFlowHandlerFactory(String factory)
106     {
107         flowHandlerFactories.add(factory);
108     }
109 
110     public void addClientWindowFactory(String factory)
111     {
112         clientWindowFactories.add(factory);
113     }
114     
115     public List<String> getApplicationFactory()
116     {
117         return applicationFactories;
118     }
119 
120     public List<String> getExceptionHandlerFactory()
121     {
122         return exceptionHandlerFactories;
123     }
124 
125     public List<String> getExternalContextFactory()
126     {
127         return externalContextFactories;
128     }
129 
130     public List<String> getFacesContextFactory()
131     {
132         return facesContextFactories;
133     }
134 
135     public List<String> getLifecycleFactory()
136     {
137         return lifecycleFactories;
138     }
139 
140     public List<String> getViewDeclarationLanguageFactory()
141     {
142         return ViewDeclarationLanguageFactories;
143     }
144 
145     public List<String> getPartialViewContextFactory()
146     {
147         return partialViewContextFactories;
148     }
149 
150     public List<String> getRenderkitFactory()
151     {
152         return renderKitFactories;
153     }
154 
155     public List<String> getTagHandlerDelegateFactory()
156     {
157         return tagHandlerDelegateFactories;
158     }
159 
160     public List<String> getVisitContextFactory()
161     {
162         return visitContextFactories;
163     }
164 
165     @Override
166     public List<String> getFaceletCacheFactory()
167     {
168         return faceletCacheFactories;
169     }
170 
171     @Override
172     public List<String> getFlashFactory()
173     {
174         return flashFactories;
175     }
176 
177     @Override
178     public List<String> getFlowHandlerFactory()
179     {
180         return flowHandlerFactories;
181     }
182 
183     @Override
184     public List<String> getClientWindowFactory()
185     {
186         return clientWindowFactories;
187     }
188 }