org.apache.myfaces.tobago.util
Class VariableResolverUtils

java.lang.Object
  extended by org.apache.myfaces.tobago.util.VariableResolverUtils

public final class VariableResolverUtils
extends Object


Method Summary
static void clearVariable(javax.faces.context.FacesContext context, String variable)
          Clears the value of the variable.
static ClientProperties resolveClientProperties(javax.faces.context.FacesContext facesContext)
          Returns the ClientProperties object configured in the faces-config.
static Object resolveVariable(javax.faces.context.FacesContext context, String variable)
          Returns the requested object configured in the faces-config or from library.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

resolveVariable

public static Object resolveVariable(javax.faces.context.FacesContext context,
                                     String variable)
Returns the requested object configured in the faces-config or from library.


resolveClientProperties

public static ClientProperties resolveClientProperties(javax.faces.context.FacesContext facesContext)
Returns the ClientProperties object configured in the faces-config.


clearVariable

public static void clearVariable(javax.faces.context.FacesContext context,
                                 String variable)
Clears the value of the variable. Useful for cleaning up e.g. a session or application variable to save memory without the knowledge of the scope. Also useful to enforce a new creation of a managed-bean.



Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.