org.primefaces.extensions.config
Class ConfigProvider

java.lang.Object
  extended by org.primefaces.extensions.config.ConfigProvider

public class ConfigProvider
extends java.lang.Object

Provider for the ConfigContainer.

Since:
0.6.3
Version:
$Revision$
Author:
Thomas Andraschko / last modified by $Author$

Constructor Summary
ConfigProvider()
           
 
Method Summary
static void cleanCache()
           
static ConfigContainer getConfig(javax.faces.context.FacesContext context)
          Gets the one and only ConfigContainer instance: - try to lookup it from a ThreadLocal cache - try to get it from the application map - create a new instance, store it in the ThreadLocal cache and in the application map
static ConfigContainer getConfig(javax.faces.context.FacesContext context, boolean cacheInThreadLocal)
          Gets the one and only ConfigContainer instance: - try to lookup it from a ThreadLocal cache - try to get it from the application map - create a new instance, store it in the ThreadLocal cache and in the application map
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigProvider

public ConfigProvider()
Method Detail

getConfig

public static ConfigContainer getConfig(javax.faces.context.FacesContext context)
Gets the one and only ConfigContainer instance: - try to lookup it from a ThreadLocal cache - try to get it from the application map - create a new instance, store it in the ThreadLocal cache and in the application map

Parameters:
context - The FacesContext.
Returns:
The ConfigContainer instance.

getConfig

public static ConfigContainer getConfig(javax.faces.context.FacesContext context,
                                        boolean cacheInThreadLocal)
Gets the one and only ConfigContainer instance: - try to lookup it from a ThreadLocal cache - try to get it from the application map - create a new instance, store it in the ThreadLocal cache and in the application map

Parameters:
context - The FacesContext.
If - the ConfigContainer should be cached in the ThreadLocal variable.
Returns:
The ConfigContainer instance.

cleanCache

public static void cleanCache()


Copyright © 2011-2013. All Rights Reserved.