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.
use Prototype.PrototypeFactoryMethod, Prototype.ConfigFactoryMethod, or Prototype.RuntimeTypeFactoryMethod for other types this annotation could have been used for in the past
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 extends io.helidon.common.Builder, that builds the prototype
  • static Prototype.Builder Prototype.builder(Prototype) - a method that returns a builder populated from existing prototype instance
  • static Prototype create(io.helidon.config.Config config) - a method that creates a new instance of prototype from configuration
  • static Prototype create() - a method that creates a new instance if there are no required fields