I've seen in many example the use of @Autowire in spring on a method. For example in configuration file:
@Component
public class SomeConfigFile{
@Autowire
public void someMethod(SomeBeanInstance someBean){
//bla bla
}
I guess someBean in my example above injected to the method by Spring but when does this method is called? and how calls it?