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 TypeMethodDescriptionvoid
addApplicationElResolver
(jakarta.el.ELResolver resolver) void
void
addComponentTagDeclaration
(ComponentTagDeclaration declaration) void
addContractMapping
(String urlPattern, String contract) void
addContractMapping
(String urlPattern, String[] contracts) final void
addConverterConfiguration
(String converterClassName, Converter configuration) void
addFaceletProcessingConfiguration
(String fileExtension, FaceletsProcessing configuration) void
void
addFaceletTagLibrary
(FaceletTagLibrary library) void
addFacesConfigElResolver
(jakarta.el.ELResolver resolver) void
addNavigationRule
(NavigationRule navigationRule) void
addResourceBundle
(ResourceBundle bundle) void
addResourceResolver
(String resourceResolver) void
addViewPoolMapping
(ViewPoolMapping mapping) List<jakarta.el.ELResolver>
getConverterConfiguration
(String converterClassName) static RuntimeConfig
getCurrentInstance
(ExternalContext externalContext) static RuntimeConfig
getCurrentInstance
(FacesContext facesContext) Comparator<jakarta.el.ELResolver>
Predicate<jakarta.el.ELResolver>
jakarta.el.ExpressionFactory
getFaceletProcessingConfiguration
(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 nameboolean
void
purge()
void
setClassLoaderResourceLibraryContracts
(Set<String> classLoaderResourceLibraryContracts) void
setELResolverComparator
(Comparator<jakarta.el.ELResolver> elResolverComparator) void
setELResolverPredicate
(Predicate<jakarta.el.ELResolver> elResolverPredicate) void
setExpressionFactory
(jakarta.el.ExpressionFactory expressionFactory) void
setExternalContextResourceLibraryContracts
(Set<String> externalContextResourceLibraryContracts) void
setIdByNamespace
(Map<String, Integer> idByNamespace) void
setNamedEventManager
(NamedEventManager namedEventManager) void
setNamespaceById
(Map<Integer, String> namespaceById) void
setNavigationRulesChanged
(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
-