Enum Class RenderContext.RenderPolicy

java.lang.Object
java.lang.Enum<RenderContext.RenderPolicy>
io.mindspice.simplypages.core.RenderContext.RenderPolicy
All Implemented Interfaces:
Serializable, Comparable<RenderContext.RenderPolicy>, Constable
Enclosing class:
RenderContext

public static enum RenderContext.RenderPolicy extends Enum<RenderContext.RenderPolicy>
Controls whether slot render output may be cached as compiled HTML entries.
  • Enum Constant Details

    • NEVER_COMPILE

      public static final RenderContext.RenderPolicy NEVER_COMPILE
      Always render live values; never persist compiled slot output.
    • COMPILE_ON_FIRST_HIT

      public static final RenderContext.RenderPolicy COMPILE_ON_FIRST_HIT
      On first live render, store generated HTML as a compiled slot entry.
  • Method Details

    • values

      public static RenderContext.RenderPolicy[] 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

      public static RenderContext.RenderPolicy valueOf(String name)
      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 name
      NullPointerException - if the argument is null