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