Coverage Report - org.apache.myfaces.config.FacesConfigDispenser
 
Classes in this File Line Coverage Branch Coverage Complexity
FacesConfigDispenser
N/A
N/A
0
 
 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;
 20  
 
 21  
 import org.apache.myfaces.config.element.ManagedBean;
 22  
 import org.apache.myfaces.config.element.NavigationRule;
 23  
 import org.apache.myfaces.config.element.Renderer;
 24  
 import org.apache.myfaces.config.impl.digester.elements.Converter;
 25  
 import org.apache.myfaces.config.impl.digester.elements.ResourceBundle;
 26  
 
 27  
 import javax.el.ELResolver;
 28  
 
 29  
 import java.util.Iterator;
 30  
 
 31  
 /**
 32  
  * Subsumes several unmarshalled faces config objects and presents a simple interface
 33  
  * to the combined configuration data.
 34  
  *
 35  
  * @author Manfred Geiler (latest modification by $Author: skitching $)
 36  
  * @version $Revision: 684459 $ $Date: 2008-08-10 06:13:56 -0500 (Sun, 10 Aug 2008) $
 37  
  */
 38  
 public interface FacesConfigDispenser<C>
 39  
 {
 40  
     /**
 41  
      * Add another unmarshalled faces config object.
 42  
      * @param facesConfig unmarshalled faces config object
 43  
      */
 44  
     public void feed(C facesConfig);
 45  
 
 46  
     /**
 47  
      * Add another ApplicationFactory class name
 48  
      * @param factoryClassName a class name
 49  
      */
 50  
     public void feedApplicationFactory(String factoryClassName);
 51  
 
 52  
     /**
 53  
      * Add another FacesContextFactory class name
 54  
      * @param factoryClassName a class name
 55  
      */
 56  
     public void feedFacesContextFactory(String factoryClassName);
 57  
 
 58  
     /**
 59  
      * Add another LifecycleFactory class name
 60  
      * @param factoryClassName a class name
 61  
      */
 62  
     public void feedLifecycleFactory(String factoryClassName);
 63  
 
 64  
     /**
 65  
      * Add another RenderKitFactory class name
 66  
      * @param factoryClassName a class name
 67  
      */
 68  
     public void feedRenderKitFactory(String factoryClassName);
 69  
 
 70  
 
 71  
 
 72  
     /** @return Iterator over ApplicationFactory class names */
 73  
     public Iterator<String> getApplicationFactoryIterator();
 74  
 
 75  
     /** @return Iterator over FacesContextFactory class names */
 76  
     public Iterator<String> getFacesContextFactoryIterator();
 77  
 
 78  
     /** @return Iterator over LifecycleFactory class names */
 79  
     public Iterator<String> getLifecycleFactoryIterator();
 80  
 
 81  
     /** @return Iterator over RenderKit factory class names */
 82  
     public Iterator<String> getRenderKitFactoryIterator();
 83  
 
 84  
 
 85  
     /** @return Iterator over ActionListener class names (in reverse order!) */
 86  
     public Iterator<String> getActionListenerIterator();
 87  
 
 88  
     /** @return the default render kit id */
 89  
     public String getDefaultRenderKitId();
 90  
 
 91  
     /** @return Iterator over message bundle names (in reverse order!) */
 92  
     public String getMessageBundle();
 93  
 
 94  
     /** @return Iterator over NavigationHandler class names */
 95  
     public Iterator<String> getNavigationHandlerIterator();
 96  
 
 97  
     /** @return Iterator over ViewHandler class names */
 98  
     public Iterator<String> getViewHandlerIterator();
 99  
 
 100  
     /** @return Iterator over StateManager class names*/
 101  
     public Iterator getStateManagerIterator();
 102  
 
 103  
     /** @return Iterator over PropertyResolver class names */
 104  
     public Iterator<String> getPropertyResolverIterator();
 105  
 
 106  
     /** @return Iterator over VariableResolver class names  */
 107  
     public Iterator<String> getVariableResolverIterator();
 108  
 
 109  
     /** @return the default locale name */
 110  
     public String getDefaultLocale();
 111  
 
 112  
     /** @return Iterator over supported locale names */
 113  
     public Iterator<String> getSupportedLocalesIterator();
 114  
 
 115  
 
 116  
     /** @return Iterator over all defined component types */
 117  
     public Iterator<String> getComponentTypes();
 118  
 
 119  
     /** @return component class that belongs to the given component type */
 120  
     public String getComponentClass(String componentType);
 121  
 
 122  
 
 123  
     /** @return Iterator over all defined converter ids */
 124  
     public Iterator<String> getConverterIds();
 125  
 
 126  
     /** @return Iterator over all classes with an associated converter  */
 127  
     public Iterator<String> getConverterClasses();
 128  
 
 129  
     /** @return Iterator over the config classes for the converters  */
 130  
     Iterator<String> getConverterConfigurationByClassName();
 131  
 
 132  
     /** delivers a converter-configuration for one class-name */
 133  
     Converter getConverterConfiguration(String converterClassName);
 134  
 
 135  
     /** @return converter class that belongs to the given converter id */
 136  
     public String getConverterClassById(String converterId);
 137  
 
 138  
     /** @return converter class that is associated with the given class name  */
 139  
     public String getConverterClassByClass(String className);
 140  
 
 141  
 
 142  
     /** @return Iterator over all defined validator ids */
 143  
     public Iterator<String> getValidatorIds();
 144  
 
 145  
     /** @return validator class name that belongs to the given validator id */
 146  
     public String getValidatorClass(String validatorId);
 147  
 
 148  
 
 149  
     /**
 150  
      * @return Iterator over {@link org.apache.myfaces.config.element.ManagedBean ManagedBean}s
 151  
      */
 152  
     public Iterator<ManagedBean> getManagedBeans();
 153  
 
 154  
     /**
 155  
      * @return Iterator over {@link org.apache.myfaces.config.element.NavigationRule NavigationRule}s
 156  
      */
 157  
     public Iterator<NavigationRule> getNavigationRules();
 158  
 
 159  
 
 160  
 
 161  
     /** @return Iterator over all defined renderkit ids */
 162  
     public Iterator<String> getRenderKitIds();
 163  
 
 164  
     /** @return renderkit class name for given renderkit id */
 165  
     public String getRenderKitClass(String renderKitId);
 166  
 
 167  
     /**
 168  
      * @return Iterator over {@link org.apache.myfaces.config.element.Renderer Renderer}s for the given renderKitId
 169  
      */
 170  
     public Iterator<Renderer> getRenderers(String renderKitId);
 171  
 
 172  
 
 173  
     /**
 174  
      * @return Iterator over {@link javax.faces.event.PhaseListener} implementation class names
 175  
      */
 176  
     public Iterator<String> getLifecyclePhaseListeners();
 177  
 
 178  
     /**
 179  
      * @return Iterator over {@link ResourceBundle}
 180  
      */
 181  
     public Iterator<ResourceBundle> getResourceBundles();
 182  
 
 183  
     /**
 184  
      * @return Iterator over {@link ELResolver} implementation class names
 185  
      */
 186  
     public Iterator<String> getElResolvers();
 187  
 }