Date post: | 02-Jul-2015 |
Category: |
Technology |
Upload: | andy-pemberton |
View: | 9,833 times |
Download: | 3 times |
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
• @Component, @Service
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 applicationContext
Coming Soon...
• Tooling
• Eclipse (IBM RAD)
• JSR286, Spring 3
• Bleeding Edge
• Seam portlets, JSR301, Guice
Get in Touch
• www.andypemberton.com
• aim: apembertonhsc