Spring is a Java framework aimed at simplifying the Java application development based on dependency injection and aspect-oriented programming. In this book, Craig Walls makes a full explanation of Spring covering all layers of application development.
The book contains the following chapters:
- Take Action : Spring is presented and its component modules. We introduce the main concepts of Spring , dependency injection and aspect-oriented programming.
- beans basic connection: We present the different types of containers of beans, bean plants and application contexts. Here is how to create beans in a container and how to inject property values \u200b\u200band their dependency injection. Then he shows what the autowiring beans and, finally, explains how to control the creation of beans through the start and destruction methods the bean.
- beans Advanced Connection: advanced concepts are shown beans container Spring. First see how to declare beans father of the other beans that children can inherit property. After the injection is taught methods. Then passed to the injection of beans that have been created within the Spring container . You also see how to register property editors and how to work with special beans Spring that are integrated into the life cycle of other bean. Finally, we see how to create beans with dynamic languages \u200b\u200blike Ruby , Groovy or Beanshell .
- Notifications beans: First, an introduction to aspect-oriented programming (AOP). Later, we explain how to create classic Spring aspects and what is the autoproxying. After the statement is POJO aspects and how you can inject AspectJ aspects created.
- Petitions to the database : Examine the capabilities of database access that provides Spring, and data access fillosofĂa through templates. Later you see how it can integrate with Spring JDBC pure or as ORMs Hibernate, JPA or iBatis . Finally, we show the caching capabilities in Spring .
- Transaction Management: A review of the transaction management in Spring , beginning with an explanation of basic concepts. After listing the various managers of transactions available and explains how to manage transactions in Spring , both programmatically and declaratively
- Spring Security: It is an introduction to security in Spring , that is implemented by the old library Acegi Security. Later we will see how users are authenticated and controlled access. Finally, see how secure a Web application and how to secure method invocations.
- Remote Services based in Spring and POJO : You can see how to implement and consume remote services in Spring by RMI , Hessian, Burlap , HttpInvoker and Spring Web Services .
- Building contract-first web services in Spring : Start with an introduction to Spring-WS , a framework that allows building web services from a contract defined first. It is shown how to handle messages of these services through service endpoints and as putting this together for the creation of a service. In conclusion, we see how to consume web services using Spring-WS .
- Messaging Spring: It explains what JMS and how it can be used from Spring . Then we explain how to build message-driven POJOs, and finally, how to use based RPC messages, as opposed to remote services seen in Chapter 8.
- Spring and Enterprise Java Beans : Shows how to connect to EJBs from Spring . It is shown how to develop EJBs that can take advantage of the capabilities of Spring . Finally, we see how to use EJB 3 annotations through Project Pitchfork , for dependency injection and AOP in Spring .
- Access to business services: This chapter examines the use in Spring entrepreneurial skills as JNDI, JMS email, scheduling and management of beans with JMX .
- Management Web requests: Enter the Spring MVC framework for web-tier in which requests are handled by controllers. We see how to map requests to the application controllers and the different types of controllers that can be used. You also see how to handle exceptions that may occur during the processing of these drivers.
- Show Web views: We see how Spring MVC addresses the view that should show in response to a request. Examines the various possibilities, such as JSP , with or without Tiles, and other alternatives to JSP as Velocity and Freemarker . Also see how it is possible to generate non-HTML output as Excel or PDF documents.
- Spring Web Flow: This explains what Spring Web Flow, a framework that allows to define the navigation flow of an application. We see how one can define the application flow from the basics to more advanced techniques. You also see how to integrate Spring Web Flow with other web frameworks like Struts or JSF .
- Integration with other frameworks Web: Explains how you can use the business skills Spring along with other popular web frameworks like Struts , WebWork/Struts2 , Tapestry, JSF and applications Ajax with DWR .
This book is easy to read and you'll gradually introduced in Spring , explaining the main concepts and using much of its functionality. To me has helped me to learn Spring from scratch, so as to understand dependency injection and aspect-oriented programming.
References:
Second Edition Spring in Action