Class ServerValuesValue

java.lang.Object
org.apache.juneau.console.widgets.ServerValuesValue

public final class ServerValuesValue extends Object
An immutable named server-side scalar value declaration held by a ServerValues bean.

Each value pairs a stable name (the key an author interpolates as "$FV{name}") with a session-aware provider. The provider is invoked at serve time against a per-render VarResolverSession and must return a scalar (String / Number / Boolean) or null; non-scalar results are rejected at resolve time rather than toString()-ed.

cacheable defaults to false — the provider re-runs on every reference within a render. Set it true only for values that are stable across all references in a single response.

Since:
10.0.0
  • Field Details

    • name

      public final String name
      The interpolation name (the x in "$FV{x}"). Must not be null or blank.
    • provider

      The session-aware scalar provider. Must not be null.
    • cacheable

      public final boolean cacheable
      Whether the resolved value may be memoized for the lifetime of a single render. Defaults to false.
  • Method Details