Spring @Autowire on 方法

Spring @Autowire on method

我在很多示例中都看到了在 spring 方法中使用 @Autowire。 例如在配置文件中:

@Component
public class SomeConfigFile{

@Autowire
public void someMethod(SomeBeanInstance someBean){
//bla bla
}

我猜上面例子中的 someBean 被 Spring 注入到方法中,但是这个方法是什么时候调用的?怎么称呼它?

Marks a constructor, field, setter method, or config method as to be autowired by Spring's dependency injection facilities. This is an alternative to the JSR-330 Inject annotation, adding required-vs-optional semantics.

https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/beans/factory/annotation/Autowired.html