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 Factory 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  
41      public void addApplicationFactory(String factory)
42      {
43          applicationFactories.add(factory);
44      }
45  
46      public void addExceptionHandlerFactory(String factory)
47      {
48          exceptionHandlerFactories.add(factory);
49      }
50  
51      public void addExternalContextFactory(String factory)
52      {
53          externalContextFactories.add(factory);
54      }
55  
56      public void addFacesContextFactory(String factory)
57      {
58          facesContextFactories.add(factory);
59      }
60  
61      public void addLifecycleFactory(String factory)
62      {
63          lifecycleFactories.add(factory);
64      }
65  
66      public void addViewDeclarationLanguageFactory(String factory)
67      {
68          ViewDeclarationLanguageFactories.add(factory);
69      }
70  
71      public void addPartialViewContextFactory(String factory)
72      {
73          partialViewContextFactories.add(factory);
74      }
75  
76      public void addRenderkitFactory(String factory)
77      {
78          renderKitFactories.add(factory);
79      }
80  
81      public void addTagHandlerDelegateFactory(String factory)
82      {
83          tagHandlerDelegateFactories.add(factory);
84      }
85  
86      public void addVisitContextFactory(String factory)
87      {
88          visitContextFactories.add(factory);
89      }
90  
91      public List<String> getApplicationFactory()
92      {
93          return applicationFactories;
94      }
95  
96      public List<String> getExceptionHandlerFactory()
97      {
98          return exceptionHandlerFactories;
99      }
100 
101     public List<String> getExternalContextFactory()
102     {
103         return externalContextFactories;
104     }
105 
106     public List<String> getFacesContextFactory()
107     {
108         return facesContextFactories;
109     }
110 
111     public List<String> getLifecycleFactory()
112     {
113         return lifecycleFactories;
114     }
115 
116     public List<String> getViewDeclarationLanguageFactory()
117     {
118         return ViewDeclarationLanguageFactories;
119     }
120 
121     public List<String> getPartialViewContextFactory()
122     {
123         return partialViewContextFactories;
124     }
125 
126     public List<String> getRenderkitFactory()
127     {
128         return renderKitFactories;
129     }
130 
131     public List<String> getTagHandlerDelegateFactory()
132     {
133         return tagHandlerDelegateFactories;
134     }
135 
136     public List<String> getVisitContextFactory()
137     {
138         return visitContextFactories;
139     }
140 }