(Quick Reference)

pluginConfig

This read-only property is added to all Grails artefacts provided by plugins.

Artefacts can use this to access the configuration values that pertain to their plugin only.

Example:

{docx} class MyPluginService { def doSomething() { if (pluginConfig.enabled) { println "It worked!" } } } {docx}

This provides a valuable shortcut to accessing config that removes the responsibility to maintain this information from your code.