Struct AssignNewInstance

UDA for annotating class members to be autowired with a new instance regardless of their registration scope.

struct AssignNewInstance ;

Examples

class Car {
    @Autowire
    @AssignNewInstance
    public Antenna antenna;
}

antenna will always be assigned a new instance of class Antenna.