<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.vitarara.org/cms" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>Vita Rara: A Life Uncommon - Grails</title>
 <link>http://www.vitarara.org/cms/taxonomy/term/74/0</link>
 <description></description>
 <language>en</language>
<item>
 <title>Closures and Bindings in Groovy</title>
 <link>http://www.vitarara.org/cms/closures_and_bindings_in_groovy</link>
 <description>&lt;p&gt;You can learn something every day. That&#039;s what is so nice about being a software developer.&lt;/p&gt;
&lt;p&gt;Today I was looking at some Grails code, seeing how some of the metaprogramming features of Groovy are used in the framework. After poking around I decided to look at the ServicesGrailsPlugin to see how the automatic wiring of services was done, and ran across the following code:&lt;/p&gt;
&lt;pre&gt;
def doWithSpring = {
  application.serviceClasses.each { serviceClass -&amp;gt;
      def scope = serviceClass.getPropertyValue(&quot;scope&quot;)

    &quot;${serviceClass.fullName}ServiceClass&quot;(MethodInvokingFactoryBean) {
      targetObject = ref(&quot;grailsApplication&quot;, true)&lt;p&gt;&lt;a href=&quot;http://www.vitarara.org/cms/closures_and_bindings_in_groovy&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.vitarara.org/cms/closures_and_bindings_in_groovy#comment</comments>
 <category domain="http://www.vitarara.org/cms/taxonomy/term/74">Grails</category>
 <category domain="http://www.vitarara.org/cms/taxonomy/term/68">Groovy</category>
 <pubDate>Fri,  8 Feb 2008 13:06:57 -0500</pubDate>
 <dc:creator>Mark</dc:creator>
 <guid isPermaLink="false">161 at http://www.vitarara.org/cms</guid>
</item>
<item>
 <title>The Definitive Guide to Grails</title>
 <link>http://www.vitarara.org/cms/node/116</link>
 <description>&lt;p&gt;I picked up a copy of The Definitive Guide to Grails this week. I&#039;m most of the way through it, and I&#039;m impressed. The Grails team has definitely done a lot of work. As a result I&#039;ve started to dig into the code, and I&#039;m getting a lot of ideas for Groovy Works.&lt;/p&gt;
&lt;p&gt;Overall I highly recommend getting a copy of the book, whether you use Grails or not. It is well worth a look. &lt;/p&gt;
&lt;p&gt;I&#039;ll post more thoughts when I finish the book.&lt;/p&gt;
</description>
 <comments>http://www.vitarara.org/cms/node/116#comment</comments>
 <category domain="http://www.vitarara.org/cms/taxonomy/term/74">Grails</category>
 <category domain="http://www.vitarara.org/cms/taxonomy/term/68">Groovy</category>
 <category domain="http://www.vitarara.org/cms/taxonomy/term/70">Groovy Works</category>
 <category domain="http://www.vitarara.org/cms/taxonomy/term/7">Programming</category>
 <pubDate>Sat, 31 Mar 2007 18:26:28 -0400</pubDate>
 <dc:creator>Mark</dc:creator>
 <guid isPermaLink="false">116 at http://www.vitarara.org/cms</guid>
</item>
</channel>
</rss>
