Package org.apache.myfaces.config
Class RuntimeConfig
- java.lang.Object
-
- org.apache.myfaces.config.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 Summary
Constructors Constructor Description RuntimeConfig()
-
Method Summary
-
-
-
Method Detail
-
getCurrentInstance
public static RuntimeConfig getCurrentInstance(FacesContext facesContext)
-
getCurrentInstance
public static RuntimeConfig getCurrentInstance(ExternalContext externalContext)
-
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
NavigationRule
s
-
addNavigationRule
public void addNavigationRule(NavigationRule navigationRule)
-
isNavigationRulesChanged
public boolean isNavigationRulesChanged()
-
setNavigationRulesChanged
public void setNavigationRulesChanged(boolean navigationRulesChanged)
-
addComponentTagDeclaration
public void addComponentTagDeclaration(ComponentTagDeclaration declaration)
-
getComponentTagDeclarations
public List<ComponentTagDeclaration> getComponentTagDeclarations()
-
addFaceletTagLibrary
public void addFaceletTagLibrary(FaceletTagLibrary library)
-
getFaceletTagLibraries
public List<FaceletTagLibrary> getFaceletTagLibraries()
-
addConverterConfiguration
public final void addConverterConfiguration(String converterClassName, Converter configuration)
-
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
-
getResourceBundles
public Map<String,ResourceBundle> getResourceBundles()
- Returns:
- the resourceBundles
-
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()
-
getNamedEventManager
public NamedEventManager getNamedEventManager()
-
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)
-
getFaceletProcessingConfigurations
public Collection<FaceletsProcessing> getFaceletProcessingConfigurations()
-
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
-
addResourceResolver
public void addResourceResolver(String resourceResolver)
-
getViewPoolMappings
public List<ViewPoolMapping> getViewPoolMappings()
-
addViewPoolMapping
public void addViewPoolMapping(ViewPoolMapping mapping)
-
addApplicationSearchExpressionResolver
public void addApplicationSearchExpressionResolver(SearchKeywordResolver resolver)
-
getApplicationSearchExpressionResolvers
public List<SearchKeywordResolver> getApplicationSearchExpressionResolvers()
-
getFaceletsTemplateMappings
public List<FaceletsTemplateMapping> getFaceletsTemplateMappings()
-
addFaceletsTemplateMapping
public void addFaceletsTemplateMapping(FaceletsTemplateMapping mapping)
-
-