Enum Class RenderContext.RenderPolicy
- All Implemented Interfaces:
Serializable, Comparable<RenderContext.RenderPolicy>, Constable
- Enclosing class:
RenderContext
Controls whether slot render output may be cached as compiled HTML entries.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionOn first live render, store generated HTML as a compiled slot entry.Always render live values; never persist compiled slot output. -
Method Summary
Modifier and TypeMethodDescriptionstatic RenderContext.RenderPolicyReturns the enum constant of this class with the specified name.static RenderContext.RenderPolicy[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NEVER_COMPILE
Always render live values; never persist compiled slot output. -
COMPILE_ON_FIRST_HIT
On first live render, store generated HTML as a compiled slot entry.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-