org.apache.myfaces.config

Class 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: 233472 $ $Date: 2005-08-19 14:40:17 +0200 (Fri, 19 Aug 2005) $
Author:
Manfred Geiler (latest modification by $Author: mmarinschek $)

Method Summary

void
addManagedBean(String name, ManagedBean managedBean)
void
addNavigationRule(NavigationRule navigationRule)
static RuntimeConfig
getCurrentInstance(ExternalContext externalContext)
ManagedBean
getManagedBean(String name)
Return the managed bean info that can be used by the VariableResolver implementation.
Collection
getNavigationRules()
Return the navigation rules that can be used by the NavigationHandler implementation.
boolean
isNavigationRulesChanged()
void
setNavigationRulesChanged(boolean navigationRulesChanged)

Method Details

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.

isNavigationRulesChanged

public boolean isNavigationRulesChanged()

setNavigationRulesChanged

public void setNavigationRulesChanged(boolean navigationRulesChanged)