Module io.helidon.builder.api
Package io.helidon.builder.api
Annotation Interface Prototype.FactoryMethod
- Enclosing class:
Prototype
@Target({METHOD,TYPE})
@Retention(CLASS)
@Deprecated(forRemoval=true,
since="4.4.0")
public static @interface Prototype.FactoryMethod
Deprecated, for removal: This API element is subject to removal in a future version.
Old behavior, kept for backward compatibility:
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.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
Prototype.PrototypeFactoryMethod,Prototype.ConfigFactoryMethod, orPrototype.RuntimeTypeFactoryMethodfor other types this annotation could have been used for in the past