org.apache.myfaces.config
Class RuntimeConfig

java.lang.Object
  extended by org.apache.myfaces.config.RuntimeConfig

public class RuntimeConfig
extends java.lang.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: 527076 $ $Date: 2007-04-10 12:01:32 +0200 (Di, 10 Apr 2007) $
Author:
Manfred Geiler (latest modification by $Author: mbr $)

Constructor Summary
RuntimeConfig()
           
 
Method Summary
 void addApplicationElResolver(javax.el.ELResolver resolver)
           
 void addFacesConfigElResolver(javax.el.ELResolver resolver)
           
 void addManagedBean(java.lang.String name, ManagedBean managedBean)
           
 void addNavigationRule(NavigationRule navigationRule)
           
 void addResourceBundle(ResourceBundle bundle)
           
 javax.el.ELResolver getApplicationElResolvers()
           
static RuntimeConfig getCurrentInstance(javax.faces.context.ExternalContext externalContext)
           
 javax.el.ExpressionFactory getExpressionFactory()
           
 javax.el.ELResolver getFacesConfigElResolvers()
           
 ManagedBean getManagedBean(java.lang.String name)
          Return the managed bean info that can be used by the VariableResolver implementation.
 java.util.Map<java.lang.String,ManagedBean> getManagedBeans()
           
 java.util.Collection<NavigationRule> getNavigationRules()
          Return the navigation rules that can be used by the NavigationHandler implementation.
 javax.faces.el.PropertyResolver getPropertyResolver()
           
 javax.faces.el.PropertyResolver getPropertyResolverChainHead()
           
 ResourceBundle getResourceBundle(java.lang.String name)
          Return the resourcebundle which was configured in faces config by var name
 java.util.Map<java.lang.String,ResourceBundle> getResourceBundles()
           
 javax.faces.el.VariableResolver getVariableResolver()
           
 javax.faces.el.VariableResolver getVariableResolverChainHead()
           
 boolean isNavigationRulesChanged()
           
 void setExpressionFactory(javax.el.ExpressionFactory expressionFactory)
           
 void setNavigationRulesChanged(boolean navigationRulesChanged)
           
 void setPropertyResolver(javax.faces.el.PropertyResolver propertyResolver)
           
 void setPropertyResolverChainHead(javax.faces.el.PropertyResolver resolver)
           
 void setVariableResolver(javax.faces.el.VariableResolver variableResolver)
           
 void setVariableResolverChainHead(javax.faces.el.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(javax.faces.context.ExternalContext externalContext)

getNavigationRules

public java.util.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(java.lang.String name)
Return the managed bean info that can be used by the VariableResolver implementation.

Returns:
a ManagedBean

getManagedBeans

public java.util.Map<java.lang.String,ManagedBean> getManagedBeans()

addManagedBean

public void addManagedBean(java.lang.String name,
                           ManagedBean managedBean)

getResourceBundle

public ResourceBundle getResourceBundle(java.lang.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 java.util.Map<java.lang.String,ResourceBundle> getResourceBundles()
Returns:
the resourceBundles

addResourceBundle

public void addResourceBundle(ResourceBundle bundle)

addFacesConfigElResolver

public void addFacesConfigElResolver(javax.el.ELResolver resolver)

getFacesConfigElResolvers

public javax.el.ELResolver getFacesConfigElResolvers()

addApplicationElResolver

public void addApplicationElResolver(javax.el.ELResolver resolver)

getApplicationElResolvers

public javax.el.ELResolver getApplicationElResolvers()

setVariableResolver

public void setVariableResolver(javax.faces.el.VariableResolver variableResolver)

getVariableResolver

public javax.faces.el.VariableResolver getVariableResolver()

setPropertyResolver

public void setPropertyResolver(javax.faces.el.PropertyResolver propertyResolver)

getPropertyResolver

public javax.faces.el.PropertyResolver getPropertyResolver()

getExpressionFactory

public javax.el.ExpressionFactory getExpressionFactory()

setExpressionFactory

public void setExpressionFactory(javax.el.ExpressionFactory expressionFactory)

setPropertyResolverChainHead

public void setPropertyResolverChainHead(javax.faces.el.PropertyResolver resolver)

getPropertyResolverChainHead

public javax.faces.el.PropertyResolver getPropertyResolverChainHead()

setVariableResolverChainHead

public void setVariableResolverChainHead(javax.faces.el.VariableResolver resolver)

getVariableResolverChainHead

public javax.faces.el.VariableResolver getVariableResolverChainHead()


Copyright © 2007 Apache Software Foundation. All Rights Reserved.