Annotation Type FactoryMethod


  • @Retention(CLASS)
    @Target(METHOD)
    public @interface FactoryMethod
    Indicates that the method is a factory method. The return type of the method must be an interface and the method must not have any arguments. The weaver will generate code that creates a new instance of the class implementing the interface.