Disadvantages of setter injection

Report a typo

Here is setter based injection. What are the disadvantages of this type ?

@Component
public class Customer {
    private Product product;

    @Autowired
    public void setProduct(Product product) {
        this.product = product;
    }
}
Select one or more options from the list
___

Create a free account to access the full topic