org.apache.myfaces.trinidad.menu
Class MenuUtils

java.lang.Object
  extended by org.apache.myfaces.trinidad.menu.MenuUtils

public class MenuUtils
extends java.lang.Object

Menu Utilities used by the Menu Model internal code. All classes are package private.


Method Summary
static
<T> T
getBoundValue(java.lang.String elExpression, java.lang.Class<T> desiredClass)
          Gets the bound value of an EL expression
static void loadBundle(java.lang.String resBundleName, java.lang.String resBundleKey)
          Create a ResourceBundle and put it on the Session map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getBoundValue

public static <T> T getBoundValue(java.lang.String elExpression,
                                  java.lang.Class<T> desiredClass)
Gets the bound value of an EL expression

Parameters:
elExpression - - String representing an EL expression

loadBundle

public static void loadBundle(java.lang.String resBundleName,
                              java.lang.String resBundleKey)
Create a ResourceBundle and put it on the Session map. The key is made into a ThreadLocal to ensure that this the resource bundle is threadsafe.

Parameters:
resBundleName - - String containing name of class containing the resource bundle.
resBundleKey - - String key for the resource bundle being put on the requestMap


Copyright © 2001-2011 The Apache Software Foundation. All Rights Reserved.