Package org.apache.myfaces.view.facelets
Enum ELExpressionCacheMode
- java.lang.Object
-
- java.lang.Enum<ELExpressionCacheMode>
-
- org.apache.myfaces.view.facelets.ELExpressionCacheMode
-
- All Implemented Interfaces:
Serializable
,Comparable<ELExpressionCacheMode>
public enum ELExpressionCacheMode extends Enum<ELExpressionCacheMode>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description 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.alwaysRecompile
Does not cache expressions on these cases: - An expression uses a variable resolved through VariableMapper It uses an alternate FaceletCache that implements AbstractFaceletCache contract and force recompile the facelet in case additional ui:param instances are detected.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
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
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.
-
alwaysRecompile
public static final ELExpressionCacheMode alwaysRecompile
Does not cache expressions on these cases: - An expression uses a variable resolved through VariableMapper It uses an alternate FaceletCache that implements AbstractFaceletCache contract and force recompile the facelet in case additional ui:param instances are detected.
-
-
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 nameNullPointerException
- if the argument is null
-
-