没有合适的资源?快使用搜索试试~ 我知道了~
NULL 博文链接:https://bluedest.iteye.com/blog/759370
资源推荐
资源详情
资源评论
08-05-26
1
Bootstrapping into
Groovy & Grails
Håkan Dahl / Johan Eltes
hakan.dahl@callistaenterprise.se / johan.eltes@callistaenterprise.se
www.callistaenterprise.se
GroovyAndGrails, Slide 2
Copyright 2008, Callista Enterprise AB
Agenda
•! Why Groovy and Grails?
•! Groovy highlights
•! Grails overview
•! Grails application quickstart
•! Conclusions
•! Questions
08-05-26
2
GroovyAndGrails, Slide 3
Copyright 2008, Callista Enterprise AB
Why Groovy and Grails?
•! Productivity
•! Fun
•! Groovy is Java – only so much more!
•! Overcome annoyances with the Java language
Compare to some expected Java 7 features:
http://tech.puredanger.com/java7
Neal Ford
http://memeagora.blogspot.com/2008/02/real-jdk-20.html
...
Without realizing it, the technical guys didn't think (and apparently
still don't) that Java was good enough for a real Version 2. They've
been waiting...and now it's here. Groovy is the REAL Java 2.
...
GroovyAndGrails, Slide 4
Copyright 2008, Callista Enterprise AB
First look at Groovy
•! Groovy is an extension to the JDK
–! Groovy is a language based Java and the JDK- not only the JVM
•! Why is Groovy more Java than JRuby, Scala?
–! JRuby and Scala are languages in their own right
–! They have their own type systems and frameworks, but gain
interop with Java classes through the JVM
•! So, in what way is Groovy different from Java?
–! It is a dynamic language
–! Everything(!) is an object
–! Powerful stuff like Groovy Builders and the Grails framework
can be achieved just by using the language (no code gen etc)
•! Release 1.5, dec 2007 (1.0 jan 2007)
08-05-26
3
GroovyAndGrails, Slide 5
Copyright 2008, Callista Enterprise AB
How can we run groovy?
•! Dynamically compiled or pre-compiled
•! Dynamic options
–! Code on the command line
–! Code in a script file (incrementally creates .class files)
•! .class files stored in memory
–! From within Java, e.g. using Bean Scripting Framework or
GroovyShell
•! Pre-compiled options
–! Use groovy pre-compiler as part of your build
–! This is what IDE:s do
•! A .groovy file may contain “free” script code and classes
GroovyAndGrails, Slide 6
Copyright 2008, Callista Enterprise AB
Running Groovy: From command line
08-05-26
4
GroovyAndGrails, Slide 7
Copyright 2008, Callista Enterprise AB
Running Groovy: Running Groovy from script file
GroovyAndGrails, Slide 8
Copyright 2008, Callista Enterprise AB
Running Groovy: Pre-compiling into Java classes
groovyc supports joint-compilation with Java-code.
剩余17页未读,继续阅读
资源评论
weixin_38669628
- 粉丝: 384
- 资源: 6万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功