title: Java 8's missing parameters when using ::
body: <p>Java 8's <code>::</code> enables method referencing via method name alone.</p>
  
  <pre><code>protected Object loadBeanController(String url) throws IOException {
      loader = new FXMLLoader(getClass().getResource(url));
      ApplicationContext context = MyProjectClass.getApplicationContext();
  
      loader.setControllerFactory(context::getBean);
  
      return loader.getController();
  }
  </code></pre>
  
  <p>But, however, according to <a href="http://docs.spring.io/spring-framework/docs/2.5.4/api/org/springframework/beans/factory/BeanFactory.html" rel="nofollow noreferrer">BeanFactory Interface (Spring) <code>getBean()</code></a> <code>getBean</code> does not take empty parameters - Some parameter values are expected:</p>
  
  <blockquote>
    <p>getBean(String name)<br/>
    getBean(String name, Class requiredType)<br/>
    getBean(String name, Object[] args)</p>
  </blockquote>
  
  <p>How is this resolved?</p>