Class
ComponentizedBuilder
A builder that ensures a one-to-one relationship between napkin and component instances.
class ComponentizedBuilder<Component, Router, DynamicBuildDependency, DynamicComponentDependency>
Mentioned In
Overview
ComponentizedBuilder provides an alternative to Builder that guarantees each napkin instance receives a fresh component instance. This is useful when you need strict lifecycle coupling between the napkin and its dependency scope.
Overview
Unlike Builder, which receives a pre-existing dependency, ComponentizedBuilder:
Creates a new component instance for each build invocation
Supports dynamic dependencies for both building and component creation
Validates that the component builder produces new instances
When to Use
Use ComponentizedBuilder when:
You need guaranteed fresh dependency scopes per napkin instance
You’re building reusable napkins that may be instantiated multiple times
You need to pass runtime values to the component
For simpler cases, use SimpleComponentizedBuilder or the standard Builder.
See Also
SimpleComponentizedBuilder
See Also
Builder
See Also
MultiStageComponentizedBuilder
Topics
Creating a Builder
Building
Relationships
Conforms To
Inherited By