annotation driven portlet development with spring

Post on 02-Jul-2015

9.839 Views

Category:

Technology

3 Downloads

Preview:

Click to see full reader

DESCRIPTION

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...

TRANSCRIPT

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

• apemberton@messaging.captechventures.com

top related