Académique Documents
Professionnel Documents
Culture Documents
framework in practice
Nicolas Leroux Lunatech Research
Today, we will see how the play! framework can change the way java web developers work
www.devoxx.com dinsdag 17 november 2009
Agenda
About the framework Web developers != Enterprise app developers? Looking for a simple web framework for web developers Why Play! framework is the solution Build a simple application and learn about the play! framework
www.devoxx.com dinsdag 17 november 2009
Speakers qualications
Nicolas Leroux is an application developer/ architect
Works for Lunatech Research since 2001 on enterprise applications Co-founder of the Benelux JBUG Co-founder of the Riviera JUG
www.devoxx.com
www.devoxx.com
www.devoxx.com
www.devoxx.com
www.devoxx.com
www.devoxx.com
www.devoxx.com
Play! scopes
Application scope Session scope (lives in a signed cookie) Flash scope Request scope For anything else, there is the distributed cache and it is up to you to manage it
www.devoxx.com dinsdag 17 november 2009
www.devoxx.com
Fun != Enterprise?
It really should be fun, and Play! is bridging the gap Play! applications can run on an application server Play! is written in Java and supports all the existing libraries out of the box Play! works very well in a SOA environment Play! has already been deployed within large organisations
www.devoxx.com
1 N
Comment
www.devoxx.com
@OneToOne(mappedBy="item", cascade=CascadeType.ALL) public Picture picture; @OneToMany(mappedBy="item", cascade=CascadeType.ALL) public List<Comment> comments = new ArrayList<Comment>(); public Item() {// left empty} public Item(String name, String author) { this.name = name; this.numberOfRating = 0; this.author = author; this.rating = 0f; this.createdAt = new Date(); } }
www.devoxx.com
See http://www.playframework.org/documentation/1.0/model#properties
www.devoxx.com
Application.index
# Map static resources from the /app/public folder to the /public path GET /public/ staticDir:public
www.devoxx.com
... }
www.devoxx.com
Or
www.devoxx.com
www.devoxx.com
www.devoxx.com
DEMO
What is next?
Scala support More modules, more plugins through a module repository Better support for binding objects More users Whatever you need really!
www.devoxx.com dinsdag 17 november 2009