Annotation Interface AutoconfigConstructor


@Target(CONSTRUCTOR) @Retention(RUNTIME) @Documented public @interface AutoconfigConstructor
This annotation has two effects on any algorithm component:
  • Marks that a component should be considered when automatically proposing configurations.
  • Tells the autoconfig engine which constructor describes the tunable parameters and component dependencies.
Note that algorithm components can still be built dynamically at runtime from their string representation even if they do not have this annotation, as the correct constructor to call can be detected from the given set of parameters. A class can have at most one constructor annotated with @AutoconfigConstructor.