Annotation Type Factory


  • @Documented
    @Inherited
    @Target(TYPE)
    @Retention(RUNTIME)
    public @interface Factory
    An annotation that can be used by any class having a no-arg constructor to provide one or many other component implementation. Each provided component is defined by method that is annotated with Component.