stephansun对《Beginning Groovy, Grails and Griffon》的笔记(4)

stephansun (认真你就输了...)

读过 Beginning Groovy, Grails and Griffon

Beginning Groovy, Grails and Griffon
  • 书名: Beginning Groovy, Grails and Griffon
  • 作者: Judd, Christopher M.; Shingler, Jim; Layka, Vishal
  • 页数: 364
  • 第83页

    Compile-time Metaprogramming 这一节讲了Groovy2.0出现的一些新注解,比较有意思。 Groovy在代码中加入静态编译相关的注解业界还存在争议吧。

    2013-08-26 17:01:04 回应
  • 第114页
    One important thing to keep in mind when using static scaffolding: because all the controller code and views code are generated for the domain class, Grails will not update this code if the domain class is changed, and will relinquish this responsibility to the developer.
    2013-08-26 17:13:12 回应
  • 第107页


    > grails createdomain-class todo


    > grails create-domain-class todo
    2013-08-26 17:30:09 回应
  • 第44页
    this, owner, and delegate The this refers to the instance of the enclosing class where a closure is defined. If the closure is defined within the scope of a script, the enclosing class is the script class. The owner is the enclosing object of the closure. The owner is similar to this except in the case of nested closures where the enclosing object is the outer closure. The delegate is by default the same as owner, but changeable;
    2013-11-05 18:44:11 回应