title: How to adding Dynamic Methods at Runtime to Grails domain object without creating plugins?
body: <p>In the ref documentation I found only example such as</p>
  
  <pre><code>class ExamplePlugin {
    def doWithDynamicMethods = { applicationContext -&gt;
          application.controllerClasses.each { controllerClass -&gt;
               controllerClass.metaClass.myNewMethod = {-&gt; println "hello world" }
          }
    }
  }
  </code></pre>
  
  <p>But I don't want to create plugin for such code...</p>