title: Accessing 'grailsApplication' from a plugin
body: <p>How do I access "grailsApplication" of the main application from a plugin?</p>
  
  <p>An example situation:
  I have a class in a plugin, which needs to get a resource link from the main application, which is usually retrieved via "grailsApplication". How do I do that?</p>
  
  <p><strong>SOLUTION</strong>
  In the plugin class you may simply specify:</p>
  
  <pre><code>import grails.util.Holders
  Holders.getGrailsApplication()
  </code></pre>