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: 1000673 $ $Date: 2010-09-23 19:40:36 -0500 (Thu, 23 Sep 2010) $
Author:
Manfred Geiler (latest modification by $Author: lu4242 $)

Constructor Summary
RuntimeConfig()
           
 
Method Summary
 void addConverterConfiguration(String converterClassName, Converter configuration)
           
 void addManagedBean(String name, ManagedBean managedBean)
           
 void addNavigationRule(NavigationRule navigationRule)
           
 Converter getConverterConfiguration(String converterClassName)
           
static RuntimeConfig getCurrentInstance(ExternalContext externalContext)
           
 ManagedBean getManagedBean(String name)
          Return the managed bean info that can be used by the VariableResolver implementation.
 Map getManagedBeans()
           
 List getManagedBeans(String name)
          Return the managed bean info that can be used by the VariableResolver implementation.
 Map getManagedBeansNotReaddedAfterPurge()
           
 Collection getNavigationRules()
          Return the navigation rules that can be used by the NavigationHandler implementation.
 boolean isNavigationRulesChanged()
           
 void purge()
           
 void resetManagedBeansNotReaddedAfterPurge()
           
 void setNavigationRulesChanged(boolean navigationRulesChanged)
           
 
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 getNavigationRules()
Return the navigation rules that can be used by the NavigationHandler implementation.

Returns:
a Collection of NavigationRules

getManagedBeans

public Map getManagedBeans()

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 List getManagedBeans(String name)
Return the managed bean info that can be used by the VariableResolver implementation. Here, the full list of managed-beans is returned - if a managed bean was registered more than once. The getConfigLocation() method of the managed-bean will indicate in which config file it was registered originally.

Returns:
a ManagedBean

addManagedBean

public void addManagedBean(String name,
                           ManagedBean managedBean)

getManagedBeansNotReaddedAfterPurge

public Map getManagedBeansNotReaddedAfterPurge()

resetManagedBeansNotReaddedAfterPurge

public void resetManagedBeansNotReaddedAfterPurge()

addConverterConfiguration

public void addConverterConfiguration(String converterClassName,
                                      Converter configuration)

getConverterConfiguration

public Converter getConverterConfiguration(String converterClassName)


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