title: @Autowired bean in Play! Framework
body: <p>We know that if we use Spring framework we can use <code>@Autowired</code> bean for class and define in the applicationContext.xml  </p>
  
  <p>I want to do something like following:  </p>
  
  <blockquote>
    <p>There are ManagerClasses which based on request will log the information in database.<br>
    This database will be used for activity monitoring(using MongoDB).  </p>
    
    <p>The idea of using  @Autowired is that in an application Conntext I will get a singleton instance of the particular bean.   </p>
    
    <p>If @Autowired is there, the ManagerClasses can wire up the bean DBPersist and log the information in database. </p>
  </blockquote>
  
  <p>Please let me know if this could be done another way incase <code>@Autowired</code> is not in Play!</p>