Does Spring replaces method calls with existing bean in java config?
<p>Am I right that method <code>loadView</code> will be called only once (when creating <code>mainView</code> bean)?</p>

<pre><code>@Configuration
public class Config {

    @Bean(name = "mainView")
    public View getMainView() throws IOException {
        return loadView("fxml/main.fxml");
    }

    @Bean
    public MainController getMainController() throws IOException {
        return (MainController) getMainView().getController();
    }

    @Bean
    public Step1Controller getStep1Controller() throws IOException {
        return getMainController().getStep1Controller();
    }

   ...
}
</code></pre>