org.apache.myfaces.config
Class RuntimeConfig

java.lang.Object
  extended by 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: 1136898 $ $Date: 2011-06-17 09:49:48 -0500 (Fri, 17 Jun 2011) $
Author:
Manfred Geiler (latest modification by $Author: lu4242 $)

Constructor Summary
RuntimeConfig()
           
 
Method Summary
 void addApplicationElResolver(javax.el.ELResolver resolver)
           
 void addConverterConfiguration(String converterClassName, Converter configuration)
           
 void addFacesConfigElResolver(javax.el.ELResolver resolver)
           
 void addManagedBean(String name, ManagedBean managedBean)
           
 void addNavigationRule(NavigationRule navigationRule)
           
 void addResourceBundle(ResourceBundle bundle)
           
 List<javax.el.ELResolver> getApplicationElResolvers()
           
 Converter getConverterConfiguration(String converterClassName)
           
static RuntimeConfig getCurrentInstance(ExternalContext externalContext)
           
 Comparator<javax.el.ELResolver> getELResolverComparator()
           
 javax.el.ExpressionFactory getExpressionFactory()
           
 List<javax.el.ELResolver> getFacesConfigElResolvers()
           
 ManagedBean getManagedBean(String name)
          Return the managed bean info that can be used by the VariableResolver implementation.
 Map<String,ManagedBean> getManagedBeans()
           
 Map getManagedBeansNotReaddedAfterPurge()
           
 Collection<NavigationRule> getNavigationRules()
          Return the navigation rules that can be used by the NavigationHandler implementation.
 PropertyResolver getPropertyResolver()
           
 PropertyResolver getPropertyResolverChainHead()
           
 ResourceBundle getResourceBundle(String name)
          Return the resourcebundle which was configured in faces config by var name
 Map<String,ResourceBundle> getResourceBundles()
           
 VariableResolver getVariableResolver()
           
 VariableResolver getVariableResolverChainHead()
           
 boolean isNavigationRulesChanged()
           
 void purge()
           
 void resetManagedBeansNotReaddedAfterPurge()
           
 void setELResolverComparator(Comparator<javax.el.ELResolver> elResolverComparator)
           
 void setExpressionFactory(javax.el.ExpressionFactory expressionFactory)
           
 void setNavigationRulesChanged(boolean navigationRulesChanged)
           
 void setPropertyResolver(PropertyResolver propertyResolver)
           
 void setPropertyResolverChainHead(PropertyResolver resolver)
           
 void setVariableResolver(VariableResolver variableResolver)
           
 void setVariableResolverChainHead(VariableResolver resolver)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuntimeConfig

public RuntimeConfig()
Method Detail

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 NavigationRules

addNavigationRule

public void addNavigationRule(NavigationRule navigationRule)

isNavigationRulesChanged

public boolean isNavigationRulesChanged()

setNavigationRulesChanged

public void setNavigationRulesChanged(boolean navigationRulesChanged)

getManagedBean

public ManagedBean getManagedBean(String name)
Return the managed bean info that can be used by the VariableResolver implementation.

Returns:
a ManagedBean

getManagedBeans

public Map<String,ManagedBean> getManagedBeans()

addManagedBean

public void addManagedBean(String name,
                           ManagedBean managedBean)

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

getResourceBundles

public Map<String,ResourceBundle> getResourceBundles()
Returns:
the resourceBundles

addResourceBundle

public void addResourceBundle(ResourceBundle bundle)

addFacesConfigElResolver

public void addFacesConfigElResolver(javax.el.ELResolver resolver)

getFacesConfigElResolvers

public List<javax.el.ELResolver> getFacesConfigElResolvers()

addApplicationElResolver

public void addApplicationElResolver(javax.el.ELResolver resolver)

getApplicationElResolvers

public List<javax.el.ELResolver> getApplicationElResolvers()

setVariableResolver

public void setVariableResolver(VariableResolver variableResolver)

getVariableResolver

public VariableResolver getVariableResolver()

setPropertyResolver

public void setPropertyResolver(PropertyResolver propertyResolver)

getPropertyResolver

public PropertyResolver getPropertyResolver()

getExpressionFactory

public javax.el.ExpressionFactory getExpressionFactory()

setExpressionFactory

public void setExpressionFactory(javax.el.ExpressionFactory expressionFactory)

setPropertyResolverChainHead

public void setPropertyResolverChainHead(PropertyResolver resolver)

getPropertyResolverChainHead

public PropertyResolver getPropertyResolverChainHead()

setVariableResolverChainHead

public void setVariableResolverChainHead(VariableResolver resolver)

getVariableResolverChainHead

public VariableResolver getVariableResolverChainHead()

getManagedBeansNotReaddedAfterPurge

public Map getManagedBeansNotReaddedAfterPurge()

resetManagedBeansNotReaddedAfterPurge

public void resetManagedBeansNotReaddedAfterPurge()

getELResolverComparator

public Comparator<javax.el.ELResolver> getELResolverComparator()

setELResolverComparator

public void setELResolverComparator(Comparator<javax.el.ELResolver> elResolverComparator)


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.