Annotation Type Factory

  • @Retention(RUNTIME)
    public @interface Factory
    On a type this annotation is used to filter reflective factory targets using this annotation value as a predicate. Annotating a class without providing a value makes no sense. For methods and fields this annotation indicates that the method return value or field value shall be used as introspection targets to create element processors.