Package org.apache.myfaces.config
Class RuntimeConfig
java.lang.Object
org.apache.myfaces.config.RuntimeConfig
- All Implemented Interfaces:
Purgeable
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidaddApplicationElResolver(jakarta.el.ELResolver resolver) voidvoidaddComponentTagDeclaration(ComponentTagDeclaration declaration) voidaddContractMapping(String urlPattern, String contract) voidaddContractMapping(String urlPattern, String[] contracts) final voidaddConverterConfiguration(String converterClassName, Converter configuration) voidaddFaceletProcessingConfiguration(String fileExtension, FaceletsProcessing configuration) voidvoidaddFaceletTagLibrary(FaceletTagLibrary library) voidaddFacesConfigElResolver(jakarta.el.ELResolver resolver) voidaddNavigationRule(NavigationRule navigationRule) voidaddResourceBundle(ResourceBundle bundle) voidaddResourceResolver(String resourceResolver) voidaddViewPoolMapping(ViewPoolMapping mapping) List<jakarta.el.ELResolver>getConverterConfiguration(String converterClassName) static RuntimeConfiggetCurrentInstance(ExternalContext externalContext) static RuntimeConfiggetCurrentInstance(FacesContext facesContext) Comparator<jakarta.el.ELResolver>Predicate<jakarta.el.ELResolver>jakarta.el.ExpressionFactorygetFaceletProcessingConfiguration(String fileExtensions) List<jakarta.el.ELResolver>Return the navigation rules that can be used by the NavigationHandler implementation.getResourceBundle(String name) Return the resourcebundle which was configured in faces config by var namebooleanvoidpurge()voidsetClassLoaderResourceLibraryContracts(Set<String> classLoaderResourceLibraryContracts) voidsetELResolverComparator(Comparator<jakarta.el.ELResolver> elResolverComparator) voidsetELResolverPredicate(Predicate<jakarta.el.ELResolver> elResolverPredicate) voidsetExpressionFactory(jakarta.el.ExpressionFactory expressionFactory) voidsetExternalContextResourceLibraryContracts(Set<String> externalContextResourceLibraryContracts) voidsetIdByNamespace(Map<String, Integer> idByNamespace) voidsetNamedEventManager(NamedEventManager namedEventManager) voidsetNamespaceById(Map<Integer, String> namespaceById) voidsetNavigationRulesChanged(boolean navigationRulesChanged)
-
Constructor Details
-
RuntimeConfig
public RuntimeConfig()
-
-
Method Details
-
getCurrentInstance
-
getCurrentInstance
-
purge
public void purge() -
addComponentTagDeclaration
-
getComponentTagDeclarations
-
addFaceletTagLibrary
-
getFaceletTagLibraries
-
addConverterConfiguration
-
getConverterConfiguration
-
getResourceBundle
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
- Returns:
- the resourceBundles
-
addResourceBundle
-
addFacesConfigElResolver
public void addFacesConfigElResolver(jakarta.el.ELResolver resolver) -
getFacesConfigElResolvers
-
addApplicationElResolver
public void addApplicationElResolver(jakarta.el.ELResolver resolver) -
getApplicationElResolvers
-
getExpressionFactory
public jakarta.el.ExpressionFactory getExpressionFactory() -
setExpressionFactory
public void setExpressionFactory(jakarta.el.ExpressionFactory expressionFactory) -
getFacesVersion
-
getNamedEventManager
-
setNamedEventManager
-
getELResolverComparator
-
setELResolverComparator
-
getELResolverPredicate
-
setELResolverPredicate
-
addFaceletProcessingConfiguration
public void addFaceletProcessingConfiguration(String fileExtension, FaceletsProcessing configuration) -
getFaceletProcessingConfiguration
-
getFaceletProcessingConfigurations
-
getExternalContextResourceLibraryContracts
- Returns:
- the _externalContextResourceLibraryContracts
-
setExternalContextResourceLibraryContracts
public void setExternalContextResourceLibraryContracts(Set<String> externalContextResourceLibraryContracts) - Parameters:
externalContextResourceLibraryContracts- the _externalContextResourceLibraryContracts to set
-
getClassLoaderResourceLibraryContracts
- Returns:
- the _classLoaderResourceLibraryContracts
-
setClassLoaderResourceLibraryContracts
- Parameters:
classLoaderResourceLibraryContracts- the _classLoaderResourceLibraryContracts to set
-
getResourceLibraryContracts
- Returns:
- the _resourceLibraryContracts
-
getContractMappings
- Returns:
- the _contractMappings
-
addContractMapping
-
addContractMapping
-
getResourceResolvers
-
addResourceResolver
-
getNamespaceById
-
setNamespaceById
-
getIdByNamespace
-
setIdByNamespace
-
getViewPoolMappings
-
addViewPoolMapping
-
addApplicationSearchExpressionResolver
-
getApplicationSearchExpressionResolvers
-
getFaceletsTemplateMappings
-
addFaceletsTemplateMapping
-