Module io.helidon.builder.api
Package io.helidon.builder.api
Annotation Interface Prototype.FactoryMethod
- Enclosing class:
Prototype
This is an annotation used by Helidon code generator that marks a static method
as a factory method.
This annotation must be defined on any static method that should be used as a factory for runtime types from
prototypes, and from configuration on Prototype.Blueprint
.
This annotation is generated for the following signatures:
static Prototype.Builder Prototype.builder()
- a method that returns a builder that extendsio.helidon.common.Builder
, that builds the prototypestatic Prototype.Builder Prototype.builder(Prototype)
- a method that returns a builder populated from existing prototype instancestatic Prototype create(io.helidon.common.config.Config config)
- a method that creates a new instance of prototype from configurationstatic Prototype create()
- a method that creates a new instance if there are no required fields