title: Make instance of class available to all classes in spring?
body: <p>I have a class which basically just contains a HashMap.</p>
  
  <p>The class also has a simple getter method which allows other parts of my application to send the "key" and get back the value from the map.</p>
  
  <p>That much works, however, I don't want to keep instantiating that class every time I need to access it, because this particular data doesn't really change, and I only want it in the map for the sake of querying it quickly for the value I need.</p>
  
  <p>I would like my main application class to create an instance of this, and then have it be available to all of my other classes automatically.</p>
  
  <p>I have been reading about this a lot this morning, but am kind of confused about how it could be achieved, am I trying to do some sort of singleton? Or am I trying to use a service?</p>
  
  <p>Anyway, if anyone has a snippet I can learn from - that would really help me out. I am currently using Annotations for most stuff in spring, and would LIKE to keep it that way.</p>