org.apache.myfaces.view.facelets
Enum ELExpressionCacheMode

java.lang.Object
  extended by java.lang.Enum<ELExpressionCacheMode>
      extended by org.apache.myfaces.view.facelets.ELExpressionCacheMode
All Implemented Interfaces:
Serializable, Comparable<ELExpressionCacheMode>

public enum ELExpressionCacheMode
extends Enum<ELExpressionCacheMode>


Enum Constant Summary
allowCset
          Does not cache expressions on these cases: - ui:param was used on the current template context - Inside user tags - An expression uses a variable resolved through VariableMapper In this case, c:set is assumed to be always on the parent node.
always
          Does not cache expressions on these cases: - Inside user tags - An expression uses a variable resolved through VariableMapper Note if ui:param is used, each template call should define the same param count, even if only just a few are used.
noCache
          Does not cache expressions.
strict
          Does not cache expressions on these cases: - A c:set tag with only var and value properties was used on the current page.
 
Method Summary
static ELExpressionCacheMode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ELExpressionCacheMode[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

noCache

public static final ELExpressionCacheMode noCache
Does not cache expressions.


strict

public static final ELExpressionCacheMode strict
Does not cache expressions on these cases: - A c:set tag with only var and value properties was used on the current page. - ui:param was used on the current template context - Inside user tags - An expression uses a variable resolved through VariableMapper


allowCset

public static final ELExpressionCacheMode allowCset
Does not cache expressions on these cases: - ui:param was used on the current template context - Inside user tags - An expression uses a variable resolved through VariableMapper In this case, c:set is assumed to be always on the parent node.


always

public static final ELExpressionCacheMode always
Does not cache expressions on these cases: - Inside user tags - An expression uses a variable resolved through VariableMapper Note if ui:param is used, each template call should define the same param count, even if only just a few are used.

Method Detail

values

public static ELExpressionCacheMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ELExpressionCacheMode c : ELExpressionCacheMode.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ELExpressionCacheMode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


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