Class RuntimeConfig


  • public class RuntimeConfig
    extends Object
    Holds all configuration information (from the faces-config xml files) that is needed later during runtime. The config information in this class is only available to the MyFaces core implementation classes (i.e. the myfaces source tree). See MyfacesConfig for config parameters that can be used for shared or component classes.
    Version:
    $Revision$ $Date$
    Author:
    Manfred Geiler (latest modification by $Author$)
    • Constructor Detail

      • RuntimeConfig

        public RuntimeConfig()
    • Method Detail

      • purge

        public void purge()
      • getNavigationRules

        public Collection<NavigationRule> getNavigationRules()
        Return the navigation rules that can be used by the NavigationHandler implementation.
        Returns:
        a Collection of NavigationRules
      • addNavigationRule

        public void addNavigationRule​(NavigationRule navigationRule)
      • isNavigationRulesChanged

        public boolean isNavigationRulesChanged()
      • setNavigationRulesChanged

        public void setNavigationRulesChanged​(boolean navigationRulesChanged)
      • addFaceletTagLibrary

        public void addFaceletTagLibrary​(FaceletTagLibrary library)
      • addConverterConfiguration

        public final void addConverterConfiguration​(String converterClassName,
                                                    Converter configuration)
      • getConverterConfiguration

        public Converter getConverterConfiguration​(String converterClassName)
      • getResourceBundle

        public ResourceBundle getResourceBundle​(String name)
        Return the resourcebundle which was configured in faces config by var name
        Parameters:
        name - the name of the resource bundle (content of var)
        Returns:
        the resource bundle or null if not found
      • addResourceBundle

        public void addResourceBundle​(ResourceBundle bundle)
      • addFacesConfigElResolver

        public void addFacesConfigElResolver​(jakarta.el.ELResolver resolver)
      • getFacesConfigElResolvers

        public List<jakarta.el.ELResolver> getFacesConfigElResolvers()
      • addApplicationElResolver

        public void addApplicationElResolver​(jakarta.el.ELResolver resolver)
      • getApplicationElResolvers

        public List<jakarta.el.ELResolver> getApplicationElResolvers()
      • getExpressionFactory

        public jakarta.el.ExpressionFactory getExpressionFactory()
      • setExpressionFactory

        public void setExpressionFactory​(jakarta.el.ExpressionFactory expressionFactory)
      • getFacesVersion

        public String getFacesVersion()
      • setNamedEventManager

        public void setNamedEventManager​(NamedEventManager namedEventManager)
      • getELResolverComparator

        public Comparator<jakarta.el.ELResolver> getELResolverComparator()
      • setELResolverComparator

        public void setELResolverComparator​(Comparator<jakarta.el.ELResolver> elResolverComparator)
      • getELResolverPredicate

        public Predicate<jakarta.el.ELResolver> getELResolverPredicate()
      • setELResolverPredicate

        public void setELResolverPredicate​(Predicate<jakarta.el.ELResolver> elResolverPredicate)
      • addFaceletProcessingConfiguration

        public void addFaceletProcessingConfiguration​(String fileExtension,
                                                      FaceletsProcessing configuration)
      • getFaceletProcessingConfiguration

        public FaceletsProcessing getFaceletProcessingConfiguration​(String fileExtensions)
      • getExternalContextResourceLibraryContracts

        public Set<String> getExternalContextResourceLibraryContracts()
        Returns:
        the _externalContextResourceLibraryContracts
      • setExternalContextResourceLibraryContracts

        public void setExternalContextResourceLibraryContracts​(Set<String> externalContextResourceLibraryContracts)
        Parameters:
        externalContextResourceLibraryContracts - the _externalContextResourceLibraryContracts to set
      • getClassLoaderResourceLibraryContracts

        public Set<String> getClassLoaderResourceLibraryContracts()
        Returns:
        the _classLoaderResourceLibraryContracts
      • setClassLoaderResourceLibraryContracts

        public void setClassLoaderResourceLibraryContracts​(Set<String> classLoaderResourceLibraryContracts)
        Parameters:
        classLoaderResourceLibraryContracts - the _classLoaderResourceLibraryContracts to set
      • getResourceLibraryContracts

        public Set<String> getResourceLibraryContracts()
        Returns:
        the _resourceLibraryContracts
      • getContractMappings

        public Map<String,​List<String>> getContractMappings()
        Returns:
        the _contractMappings
      • addContractMapping

        public void addContractMapping​(String urlPattern,
                                       String[] contracts)
      • addContractMapping

        public void addContractMapping​(String urlPattern,
                                       String contract)
      • getResourceResolvers

        public List<String> getResourceResolvers()
      • addResourceResolver

        public void addResourceResolver​(String resourceResolver)
      • setNamespaceById

        public void setNamespaceById​(Map<Integer,​String> namespaceById)
      • setIdByNamespace

        public void setIdByNamespace​(Map<String,​Integer> idByNamespace)
      • addViewPoolMapping

        public void addViewPoolMapping​(ViewPoolMapping mapping)
      • addApplicationSearchExpressionResolver

        public void addApplicationSearchExpressionResolver​(SearchKeywordResolver resolver)