Class RenderContext.RenderContextBuilder
java.lang.Object
io.mindspice.simplypages.core.RenderContext.RenderContextBuilder
- Enclosing class:
RenderContext
Mutable builder for
RenderContext.
Mutability/thread-safety: builder is mutable and not thread-safe. Use within a single request/render composition flow and do not share across concurrent threads.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a new context from a defensive copy of current builder state.Stores a live value forkey;nullremoves the entry.withPolicy(RenderContext.RenderPolicy policy) Sets policy for the built context.
-
Constructor Details
-
RenderContextBuilder
public RenderContextBuilder()
-
-
Method Details
-
with
Stores a live value forkey;nullremoves the entry. -
withPolicy
Sets policy for the built context.- Throws:
NullPointerException- whenpolicyis null
-
build
Builds a new context from a defensive copy of current builder state.
-