When you mark something with the Autowire annotation, you are saying you want this particular e.g. class to be automatically wired for DI.
Now where exactly do you set the target class to be used in the Autowire?
so in this example below, you autowire the setter:
public class SimpleMovieLister {
private MovieFinder movieFinder;
@Required
public void setMovieFinder(MovieFinder movieFinder) {
this.movieFinder = movieFinder;
}
// ...
}
Will spring just search for any class that implements the interface MovieFinder?