Lo nuevo en Spring 3.0 - Spring Live Perú 2009

16
Lo nuevo en Spring 3.0 Spring Live Perú 2009 UNMSM – Lima, 2009 Ing. Lennon Shimokawa http://lshimokawa.net

description

Presentación para Spring Live Perú 2009, Universidad Nacional Mayor de San Marcos, 16 de mayo 2009

Transcript of Lo nuevo en Spring 3.0 - Spring Live Perú 2009

Page 1: Lo nuevo en Spring 3.0 - Spring Live Perú 2009

Lo nuevo en Spring 3.0

Spring Live Perú 2009UNMSM – Lima, 2009Ing. Lennon Shimokawahttp://lshimokawa.net

Page 2: Lo nuevo en Spring 3.0 - Spring Live Perú 2009

Conferencias

Page 3: Lo nuevo en Spring 3.0 - Spring Live Perú 2009

Spring Perú

http://www.springperu.org/ http://groups.google.com/group/spr

ing-user-group-peru Spring Community Day 2009

Page 4: Lo nuevo en Spring 3.0 - Spring Live Perú 2009

Spring 3.0 M3

Page 5: Lo nuevo en Spring 3.0 - Spring Live Perú 2009

Reorganización Un directorio de

fuentes y jar por modulo

Ya no existe el spring.jar

Basado en Apache Ivy

Page 6: Lo nuevo en Spring 3.0 - Spring Live Perú 2009

Java 5 support

Generics and varargs BeanFactory generics

T getBean(String name, Class<T> requiredType)

TaskExecutor interface extends java.util.concurrent.Executor

Page 7: Lo nuevo en Spring 3.0 - Spring Live Perú 2009

Test Context Framework @RunWith(SpringJUnit4ClassRunner.cla

ss) @ContextConfiguration @Test

Page 8: Lo nuevo en Spring 3.0 - Spring Live Perú 2009

Spring Expression Language

XML <property name="systemProperties"

value="#{systemProperties}" />

Annotation @Value(value = "#{systemProperties}") private Map<String, String> systemProperties;

Page 9: Lo nuevo en Spring 3.0 - Spring Live Perú 2009

JavaConfig support@Configurationpublic class JavaConfigContext {

@Bean public FooService fooService() { FooServiceImpl fooService = new

FooServiceImpl(); return fooService; }}

Page 10: Lo nuevo en Spring 3.0 - Spring Live Perú 2009

REST support

Page 11: Lo nuevo en Spring 3.0 - Spring Live Perú 2009

REST

Representational State Transfer Utiliza los métodos HTTP de manera

explícita (POST, GET, PUT, DELETE) No mantiene estado Expone URIs con forma de directorios Transfiere XML, JavaScript Object

Notation (JSON), o ambos

Page 12: Lo nuevo en Spring 3.0 - Spring Live Perú 2009

REST Annotations

@RequestMapping(value = "/clientes/get/{idCliente}", method = RequestMethod.GET)

public ModelAndView get(@PathVariable("idCliente") String idCliente, Model model)

Page 13: Lo nuevo en Spring 3.0 - Spring Live Perú 2009

REST Spring MVC Views MarshallingView AbstractAtomFeedVi

ew AbstractRssFeedVie

w

Page 14: Lo nuevo en Spring 3.0 - Spring Live Perú 2009

Platform support Requires Java 5 or above

Java 6 automatically detected & supported

Web container: Servlet 2.4 or above e.g. Tomcat 5.5 & 6.0

Java EE level: J2EE 1.4 or above e.g. WebSphere 6.1 & 7.0

Fully OSGi compatible out of the box featured in dm Server 2.0

Page 15: Lo nuevo en Spring 3.0 - Spring Live Perú 2009

Otras mejoras

JSR 303: Bean Validation Portlet 2.0 support

Page 16: Lo nuevo en Spring 3.0 - Spring Live Perú 2009

Preguntas

Contacto http://lshimokawa.net http://twitter.com/lshimokawa