Spring 3 Fundamentals Using Eclipse and WebSphere

This course provides studentsa shorter introduction to some of the fundamentals of using the Spring 3 framework.  This includes the concepts of defining Spring bean components, using Spring for dependency injection, Spring support for persistence frameworks like JPA, and using Spring in various web and web service applications.

For those looking for a longer introduction to Spring 3 programming topics, the following course includes all of the content from the 'Spring 3 Fundamentals' course in addition to covering more topics.

Course Outline

CHAPTER 1. INTRODUCTION TO THE SPRING FRAMEWORK



  • What is the Spring Framework?

  • Spring Philosophies

  • Why Spring?

  • Spring Modules

  • Requirements and Supported Environments

  • Using Spring with Servers

  • Role of Spring Container

  • Spring Example

  • Avoiding Dependency on Spring

  • Additional Spring Projects/Frameworks

  • Summary


CHAPTER 2. SPRING 3 DEVELOPMENT TOOLS



  • SpringSource Tool Suite

  • Developing Spring 3 Applications With RAD

  • Sequence of Installation for Spring/RAD/WebSphere

  • Alternatives to RAD for Spring/WebSphere Development

  • Creating a Spring Project

  • Tools for Spring Beans Configuration Files

  • Spring Configuration Validation

  • Spring Web Flow Definition Tools

  • Maven Overview

  • Managing Spring JARs with Maven

  • Adding Maven Dependencies

  • Summary


CHAPTER 3. DEFINING AND USING SPRING BEANS



  • Spring “Beans”

  • Spring Containers

  • Instantiating the Spring Container

  • Retrieving Spring Beans

  • Configuring Spring Beans

  • <bean> Element

  • Naming Beans

  • Setting Bean Properties

  • Using the Spring XML 'p' Schema

  • Creating Beans with a Constructor

  • Resolving Constructor Ambiguity

  • Setting Properties vs. Invoking Constructors

  • Bean Scope

  • Effect of Bean Scope on Instances

  • Summary


CHAPTER 4. ADVANCED SPRING BEAN CONFIGURATION



  • Defining Beans with Annotations

  • Component Stereotype Annotations

  • Spring Component Annotations

  • Bean Scope with Annotations

  • Configuring Classpath Scanning for Spring Beans

  • Choosing Which Annotations to Use

  • Overriding Annotation Configuration with XML

  • Externalizing Bean Configuration

  • PropertyPlaceholderConfigurer

  • PropertyOverrideConfigurer

  • Inheriting Bean Configuration

  • Lazy Initialization

  • Declaring Beans from Static Fields

  • Declaring Beans from Object Properties

  • Summary


CHAPTER 5. SPRING DEPENDENCY INJECTION



  • Dependency Injection

  • Benefits of Dependency Injection

  • Specifying Bean References

  • Constructor Injection

  • Constructor vs. Setter Injection

  • Injecting Multivalued Properties

  • Other Multivalued Types

  • Specifying the Data Type of Collections

  • Defining Collections Using Utility Factory Beans

  • Defining a Reusable Properties From an External File

  • Bean Scope Effect on Dependency Injection

  • Autowiring With XML

  • Autowiring Example

  • Errors in Autowiring

  • Excluding a Bean from Autowiring

  • Autowiring Multivalued Properties

  • Mixing Explicit and Autowiring

  • Summary


CHAPTER 6. SPRING DEPENDENCY INJECTION WITH ANNOTATIONS



  • Dependency Injection Annotations

  • @Autowired and @Inject

  • Locations for @Autowired and @Inject

  • Autowiring Multivalued Properties

  • Autowiring by Bean Name with @Resource

  • Injecting Named Collections Defined in XML with @Resource

  • Checking Required Dependencies

  • Enforcing Required Properties with XML Autowiring

  • Multiple @Autowired Constructors

  • Multiple Autowiring Matches

  • Qualifiers with Annotation-based Autowiring

  • Adding a Qualifier Value to a Bean Definition

  • Qualification of Multivalued Properties

  • Defining Custom @Qualifier Annotations

  • Complex Custom @Qualifier Annotations

  • Associating Custom Bean Qualifiers with XML

  • Processing Injection Annotations

  • Overriding Annotation Injection

  • Summary


CHAPTER 7. TESTING SPRING APPLICATIONS



  • Spring Unit Testing

  • Configuring Test Projects

  • Spring TestContext Framework

  • Implementing Test Classes

  • Loading Spring Configuration with Test Classes

  • Accessing Spring Components Within Test Classes

  • Defining Tests to Execute

  • Isolating Tests Which Modify the Spring Environment

  • Transactional Testing Support

  • Transactional Test Base Classes

  • Avoiding False Positives with ORM Testing

  • Other Transaction Annotations

  • Other Spring Annotations for JUnit

  • Unit Testing Support Classes

  • Mock Objects

  • Summary


CHAPTER 8. OVERVIEW OF SPRING DATABASE INTEGRATION



  • DAO Support in Spring

  • Spring Data Access Modules

  • Spring JDBC Module

  • Spring ORM Module

  • DataAccessException

  • @Repository Annotation

  • Using DataSources

  • DAO Templates

  • DAO Templates and Callbacks

  • ORM Tool Support in Spring

  • Summary


CHAPTER 9. USING SPRING WITH JPA OR HIBERNATE



  • Spring ORM

  • Benefits of Using Spring with ORM

  • Spring @Repository

  • Using JPA with Spring

  • Configure Spring JPA EntityManagerFactory

  • Using JNDI to Lookup JPA EntityManagerFactory

  • LocalContainerEntityManagerFactoryBean

  • LocalEntityManagerFactoryBean

  • Application JPA Code

  • Hibernate

  • Hibernate Session Factory

  • Spring LocalSessionFactoryBean

  • Application Hibernate Code

  • "Classic" Spring ORM Usage

  • Spring JpaTemplate

  • Spring JpaCallback

  • JpaTemplate Convenience Features

  • Spring HibernateTemplate

  • Spring HibernateCallback

  • HibernateTemplate Convenience Methods

  • Summary


CHAPTER 10. USING JSF WITH SPRING



  • JSF Integration Options

  • DelegatingVariableResolver

  • SpringBeanVariableResolver

  • SpringBeanFacesELResolver

  • Spring Bean Scopes

  • FacesContextUtils

  • JSF with Spring Web Flow


CHAPTER 11. SPRING MVC



  • Spring MVC

  • Spring Web Modules

  • Spring MVC Components

  • DispatcherServlet

  • Context Loaders

  • Spring MVC Example

  • Spring MVC Mapping of Requests

  • Advanced @RequestMapping

  • Spring MVC Annotation Controllers

  • Controller Handler Method Parameters

  • Controller Handler Method Return Types

  • View Resolution

  • InternalResourceViewResolver

  • BeanNameViewResolver

  • XmlViewResolver

  • ResourceBundleViewResolver

  • Using Multiple View Resolvers

  • Spring Form Tags

  • form and input Tags

  • password and hidden Tags

  • checkbox Tag

  • radiobutton Tag

  • textarea Tag

  • select Tag

  • option Tag

  • options Tag

  • errors Tag

  • Summary


CHAPTER 12. IMPLEMENTING WEB SERVICES WITH SPRING



  • Web Services in Spring Applications

  • Spring Web Service Options

  • Injecting Spring Components Into Web Service Classes

  • Using Spring with JAX-WS Web Services

  • Extending the SpringBeanAutowiringSupport Class

  • Using a @PostConstruct Initialization Method

  • Combining @PostConstruct and @Autowired

  • Comparing Third Party Frameworks with Spring-WS

  • Summary


CHAPTER 13. INTRODUCTION TO ASPECT-ORIENTED PROGRAMMING



  • What is AOP?

  • Cross-Cutting Concerns

  • AOP Concepts

  • AOP in Spring

  • Summary


CHAPTER 14. SPRING TRANSACTION MANAGEMENT



  • Transactions

  • Spring Transaction Module

  • Transaction Management in Spring

  • Spring Transaction Managers

  • Integrating Spring Transactions with Java Enterprise Servers

  • Transaction Propagation Behavior

  • Transaction Isolation Levels

  • Read-Only and Timeouts

  • Default Transaction Settings

  • Declarative Transactions in Annotations

  • Spring XML Syntax for Transaction Advice

  • Programmatic Transactions

  • Transaction Rollback

  • Proxying Classes

  • Summary

Audience

Software designers, developers and programmers.

Available Course Dates

07/17/2017 10:00 am - 07/09/2017 6:00 pm
09/11/2017 10:00 am - 09/13/2017 6:00 pm
10/02/2017 10:00 am - 10/04/2017 6:00 pm
Click here to sign up for this class