gawkermedia/play2-closure — pull request #4 by balagez (2014-02-13 18:32:52+00:00)
Title: No reflection

Eliminated Java reflection as it caused problems with Java's and Scala's internal class fields (lazy val's bitmap$0 field, java.lang.Byte, serialVersionUID, etc.). As a consequence case classes are not supported anymore, they have to be manually converted to maps.

Added debug logging. Set the closureplugin logger's level to DEBUG in application-logger.xml to get detailed info about what's given to Closure for rendering. Note that the ```path``` parameters are call-by-name so they're only evaluated when logging is set to debug level or an error happens. So in theory this should not have any effect on performance.

Logging output should look like this:
```
[debug] closureplugin - devLog - Rendering mantle.section.header._default
...
[debug] closureplugin - devLog - locale <- en-US
[debug] closureplugin - devLog - meta.blog <- Map(displayName -> Gizmodo, excludedTags -> List(), name -> gizmodo, canonicalHost -> gizmodo.com, a... (2187 bytes)
[debug] closureplugin - devLog - meta.blog.displayName <- Gizmodo
[debug] closureplugin - devLog - meta.blog.excludedTags <- List()
[debug] closureplugin - devLog - meta.blog.name <- gizmodo
[debug] closureplugin - devLog - meta.blog.canonicalHost <- gizmodo.com
...
[debug] closureplugin - devLog - meta.blog.blogLinks <- List(Map(name -> Gizmodo, host -> gizmodo.com, icon -> gizmodo), Map(name -> White Noise, host -> wh... (332 bytes)
[debug] closureplugin - devLog - meta.blog.blogLinks[] <- Map(name -> Gizmodo, host -> gizmodo.com, icon -> gizmodo)
[debug] closureplugin - devLog - meta.blog.blogLinks[].name <- Gizmodo
[debug] closureplugin - devLog - meta.blog.blogLinks[].host <- gizmodo.com
[debug] closureplugin - devLog - meta.blog.blogLinks[].icon <- gizmodo
```