Making Java Development Fun                                                                         with Spring RooCopyrig...
Antons Kranga • Qualification:    - 10+ years in Java    - Certified Technology Architect    - Java and OO Design Trainer ...
Agenda1. Problems of Java Development2. Introduction to the Spring RooCopyright © 2011 Accenture All Rights Reserved.   3
Problems of traditional Java ApplicationsPre warning message…Copyright © 2011 Accenture All Rights Reserved.   4
Problem 1: Dam Complex!!!Even primitive JEE application is complex by it’s natureCopyright © 2011 Accenture All Rights Res...
Problem 2: Not DRY at allCopyright © 2011 Accenture All Rights Reserved.   6
Problem 3: Developers are too conservative                                                  Should we always              ...
Problem 4: Boilerplate codeCopyright © 2011 Accenture All Rights Reserved.   8
Goal of Spring Roo                                                  Goals of Roo                                          ...
Word of warning!!!Spring Roo is not a…Copyright © 2011 Accenture All Rights Reserved.   10
What is a Spring Roo                                                                Addon                                 ...
Basic Spring Roo addons                                                                    Data                           ...
Spring Roo Core componentsCopyright © 2011 Accenture All Rights Reserved.   13
Roo application development cycle                                                                                         ...
Let’s do some codingCopyright © 2011 Accenture All Rights Reserved.   15
Spring Roo UI concept                                                  • Model-View-Controller                            ...
What has been generated during for web                               uses/controls (via shell)                            ...
Page Layout                        layout.jspx                      base views                              Header.jspx   ...
Thank You!    What I missed?Copyright © 2011 Accenture All Rights Reserved.   19
Upcoming SlideShare
Loading in …5
×

LatJUG. Spring Roo

1,704 views

Published on

Spring Roo
Anton Kranga

Java User Group Latvia
www.jug.lv
June 2011

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,704
On SlideShare
0
From Embeds
0
Number of Embeds
67
Actions
Shares
0
Downloads
32
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

LatJUG. Spring Roo

  1. 1. Making Java Development Fun with Spring RooCopyright © 2011 Accenture All Rights Reserved. Accenture, its logo, and High Performance Delivered are trademarks of Accenture.
  2. 2. Antons Kranga • Qualification: - 10+ years in Java - Certified Technology Architect - Java and OO Design Trainer • Currently works in Accenture Architecture Innovation • Specialized: - Enterprise Application Design - Enterprise Portals • Likes: - Martial Arts - Embedded Devices • WEB - http://www.linkedin.com/in/antonskrangaCopyright © 2011 Accenture All Rights Reserved. 2
  3. 3. Agenda1. Problems of Java Development2. Introduction to the Spring RooCopyright © 2011 Accenture All Rights Reserved. 3
  4. 4. Problems of traditional Java ApplicationsPre warning message…Copyright © 2011 Accenture All Rights Reserved. 4
  5. 5. Problem 1: Dam Complex!!!Even primitive JEE application is complex by it’s natureCopyright © 2011 Accenture All Rights Reserved. 5
  6. 6. Problem 2: Not DRY at allCopyright © 2011 Accenture All Rights Reserved. 6
  7. 7. Problem 3: Developers are too conservative Should we always keep fall into traditions and close our eyes for innovation?Copyright © 2011 Accenture All Rights Reserved. 7
  8. 8. Problem 4: Boilerplate codeCopyright © 2011 Accenture All Rights Reserved. 8
  9. 9. Goal of Spring Roo Goals of Roo • Make Java Development Fun • Eliminate JEE Complexity • Boost programmers productivity • KISS and DRY Methods to achieve goals • Use simple but powerful commands • Pragmatic code generation • Aspect Oriented Programming • Use DDD and eliminate DAO • Service layer is optional! etcCopyright © 2011 Accenture All Rights Reserved. 9
  10. 10. Word of warning!!!Spring Roo is not a…Copyright © 2011 Accenture All Rights Reserved. 10
  11. 11. What is a Spring Roo Addon Addon Addon controls Roo Core Developer Addon Addon changes observes and changes Spring ApplicationCopyright © 2011 Accenture All Rights Reserved. 11
  12. 12. Basic Spring Roo addons Data Persistence Dynamic Project finders Mgmt Roo Core Spring Spring MVC Security … Spring Web Web Flow Project ConfigurationCopyright © 2011 Accenture All Rights Reserved. 12
  13. 13. Spring Roo Core componentsCopyright © 2011 Accenture All Rights Reserved. 13
  14. 14. Roo application development cycle Iterative use in Only initial setup maintenance is possible Configuration Project setup Entity design Web Setup (e.g. (project) (entity, field) (controller) security setup)Copyright © 2011 Accenture All Rights Reserved. 14
  15. 15. Let’s do some codingCopyright © 2011 Accenture All Rights Reserved. 15
  16. 16. Spring Roo UI concept • Model-View-Controller (MVC) concept • Rich UI controls (free type dropdown lists etc) • JavaScript used to improve user experienceCopyright © 2011 Accenture All Rights Reserved. 16
  17. 17. What has been generated during for web uses/controls (via shell) Domain Model Developer source generate Roo Core Web Application generate Spring MVC Controller class CustomerController {Static templates ... } JSPX tags for controls Internationalization (i18n) JSPX View page <div xmlns:jsp=“...” Spring JavaScript ... </div> JSPX web pages uses CSS, Pictures etcCopyright © 2011 Accenture All Rights Reserved. 17
  18. 18. Page Layout layout.jspx base views Header.jspx customer.jspx menu.jspx View create.jspx update.jspx product.jspx footer.jspx list.jspx loan.jspxCopyright © 2011 Accenture All Rights Reserved. 18
  19. 19. Thank You! What I missed?Copyright © 2011 Accenture All Rights Reserved. 19

×