title: How to get specific instance of class from another class in Java?
body: <p>I've created the following class with the <code>main</code> method, which creates new instance of <code>Application</code> and instances of <code>ApplicationModel</code>, <code>ApplicationView</code> and <code>ApplicationController</code> for this particular <code>Application</code>.</p>
  
  <pre><code>public class Application
  {
  
      // Variables
  
      private ApplicationSettings         settings;
      private ApplicationModel            model;
      private ApplicationView             view;
      private ApplicationController       controller;
  
      // Constructor
  
      public Application()
      {
          settings        = new ApplicationSettings();
          model           = new ApplicationModel();
          view            = new ApplicationView(model);
          controller      = new ApplicationController();
      }
  
      // Main method
  
      public static void main(String[] args)
      {
          Application application = new Application();
      }
  
      // Getters for settings, model, view, controller for instance of Application
  
  }
  </code></pre>
  
  <p>I know, that there will always be only one unique instance of <code>Application</code>.</p>
  
  <p>And I want to get this particular instance in my <code>ApplicationModel</code>, <code>ApplicationView</code> and <code>ApplicationController</code> classes.</p>
  
  <p>How is it possible?</p>