org.apache.myfaces.config

Class 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: 233472 $ $Date: 2005-08-19 14:40:17 +0200 (Fri, 19 Aug 2005) $

Author: Manfred Geiler (latest modification by $Author: mmarinschek $)

Method Summary
voidaddManagedBean(String name, ManagedBean managedBean)
voidaddNavigationRule(NavigationRule navigationRule)
static RuntimeConfiggetCurrentInstance(ExternalContext externalContext)
ManagedBeangetManagedBean(String name)
Return the managed bean info that can be used by the VariableResolver implementation.
CollectiongetNavigationRules()
Return the navigation rules that can be used by the NavigationHandler implementation.
booleanisNavigationRulesChanged()
voidsetNavigationRulesChanged(boolean navigationRulesChanged)

Method Detail

addManagedBean

public void addManagedBean(String name, ManagedBean managedBean)

addNavigationRule

public void addNavigationRule(NavigationRule navigationRule)

getCurrentInstance

public static RuntimeConfig getCurrentInstance(ExternalContext externalContext)

getManagedBean

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

Returns: a ManagedBean

getNavigationRules

public Collection getNavigationRules()
Return the navigation rules that can be used by the NavigationHandler implementation.

Returns: a Collection of NavigationRules

isNavigationRulesChanged

public boolean isNavigationRulesChanged()

setNavigationRulesChanged

public void setNavigationRulesChanged(boolean navigationRulesChanged)