Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Annotation Driven Portlet
 Development w/Spring




                     Andy Pemberton,
Agenda
• Spring Portlet MVC 2.5
 • Annotations
 • Goodies
 • Real World
• Demo
• Coming Soon
Spring Portlet MVC


• Design Pattern
• Model View Controller
• Front Controller
Spring Portlet MVC

• JSR 168 - Portlet 1
• JSR 286 - Portlet 2
• Two Phase
• CapTech State Pattern
Spring Portlet MVC


• Dependency Injection
 • applicationContext.xml
 • *-portlet.xml
Spring Portlet MVC

• Web MVC > Portlet MVC
 • Flexible ViewResolver
 • Binding
 • i18n
Old School
Old School


• Improvement, but...
• Pre-Java 5 constructs
• “Programming in XML”
New School
Spring Portlet
          Annotations
• Web
 •   @Controller

 •   @RequestMapping

 •   @ModelAttribute

• DI
 •   @Compon...
Other Spring Goodies

• Flexible method signatures
• Spring portlet filters
• Form and error tags
• <component-scan />
springmodules


• Spring integration framework
• Validation, JCR, Cache
• https://springmodules.dev.java.net/
Real World

• Challenges: 168 IPC, learning curve
• Leverage existing conventions
• Method signature standards
• EAR-wide ...
Coming Soon...

• Tooling
 • Eclipse (IBM RAD)
• JSR286, Spring 3
• Bleeding Edge
 • Seam portlets, JSR301, Guice
Get in Touch


•   www.andypemberton.com
•   aim: apembertonhsc
•   apemberton@messaging.captechventures.com
Annotation Driven Portlet Development with Spring
Upcoming SlideShare
Loading in …5
×

Annotation Driven Portlet Development with Spring

10,459 views

Published on

An introduction to portlet development in the Java EE 5 environment using Spring Portlet MVC (2.5).

Annotation-driven development is new to the IBM-world, given the recent release of IBM Portal 6.1. This development style is faster, cleaner, and easier to understand than prior portlet development methods and is applicable across vendors (IBM, JBoss, BEA/Oracle).

In this FYB, we'll look at:

* Portlet controllers using Spring Portlet annotations
* Annotation-based dependency injection of back-end services
* Validation capabilities and integration
* more...

Published in: Technology, Education
  • Be the first to comment

Annotation Driven Portlet Development with Spring

  1. 1. Annotation Driven Portlet Development w/Spring Andy Pemberton,
  2. 2. Agenda • Spring Portlet MVC 2.5 • Annotations • Goodies • Real World • Demo • Coming Soon
  3. 3. Spring Portlet MVC • Design Pattern • Model View Controller • Front Controller
  4. 4. Spring Portlet MVC • JSR 168 - Portlet 1 • JSR 286 - Portlet 2 • Two Phase • CapTech State Pattern
  5. 5. Spring Portlet MVC • Dependency Injection • applicationContext.xml • *-portlet.xml
  6. 6. Spring Portlet MVC • Web MVC > Portlet MVC • Flexible ViewResolver • Binding • i18n
  7. 7. Old School
  8. 8. Old School • Improvement, but... • Pre-Java 5 constructs • “Programming in XML”
  9. 9. New School
  10. 10. Spring Portlet Annotations • Web • @Controller • @RequestMapping • @ModelAttribute • DI • @Component, @Service
  11. 11. Other Spring Goodies • Flexible method signatures • Spring portlet filters • Form and error tags • <component-scan />
  12. 12. springmodules • Spring integration framework • Validation, JCR, Cache • https://springmodules.dev.java.net/
  13. 13. Real World • Challenges: 168 IPC, learning curve • Leverage existing conventions • Method signature standards • EAR-wide applicationContext
  14. 14. Coming Soon... • Tooling • Eclipse (IBM RAD) • JSR286, Spring 3 • Bleeding Edge • Seam portlets, JSR301, Guice
  15. 15. Get in Touch • www.andypemberton.com • aim: apembertonhsc • apemberton@messaging.captechventures.com

×