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.spi;
20  
21  import java.util.List;
22  
23  import javax.faces.FacesWrapper;
24  import javax.faces.context.ExternalContext;
25  
26  import org.apache.myfaces.config.element.FacesConfig;
27  
28  /**
29   * To wrap the default FacesConfigurationProvider, use a constructor like 
30   * CustomFacesConfigurationProvider(FacesConfigurationProvider fcp)
31   * and extend it from FacesConfigurationProviderWrapper
32   * 
33   * @author Leonardo Uribe
34   * @since 2.0.3
35   */
36  public abstract class FacesConfigurationProviderWrapper 
37      extends FacesConfigurationProvider 
38      implements FacesWrapper<FacesConfigurationProvider>
39  {
40  
41      public FacesConfigurationProviderWrapper()
42      {
43  
44      }
45  
46      public FacesConfig getStandardFacesConfig(ExternalContext ectx)
47      {
48          return getWrapped().getStandardFacesConfig(ectx);
49      }
50  
51      public FacesConfig getMetaInfServicesFacesConfig(ExternalContext ectx)
52      {
53          return getWrapped().getMetaInfServicesFacesConfig(ectx);
54      }
55  
56      public FacesConfig getAnnotationsFacesConfig(ExternalContext ectx,
57              boolean metadataComplete)
58      {
59          return getWrapped().getAnnotationsFacesConfig(ectx, metadataComplete);
60      }
61  
62      public List<FacesConfig> getClassloaderFacesConfig(ExternalContext ectx)
63      {
64          return getWrapped().getClassloaderFacesConfig(ectx);
65      }
66  
67      public List<FacesConfig> getContextSpecifiedFacesConfig(ExternalContext ectx)
68      {
69          return getWrapped().getContextSpecifiedFacesConfig(ectx);
70      }
71  
72      public FacesConfig getWebAppFacesConfig(ExternalContext ectx)
73      {
74          return getWrapped().getWebAppFacesConfig(ectx);
75      }
76      
77      public List<FacesConfig> getFacesFlowFacesConfig(ExternalContext ectx)
78      {
79          return getWrapped().getFacesFlowFacesConfig(ectx);
80      }
81      
82      public List<FacesConfig> getApplicationConfigurationResourceDocumentPopulatorFacesConfig(ExternalContext ectx)
83      {
84          return getWrapped().getApplicationConfigurationResourceDocumentPopulatorFacesConfig(ectx);
85      }
86  
87      public List<FacesConfig> getFaceletTaglibFacesConfig(ExternalContext ectx)
88      {
89          return getWrapped().getFaceletTaglibFacesConfig(ectx);
90      }
91  }