Customized Onsite Training

3
Days
  • Customized Content
  • For Groups of 5+
  • Online or On-location
  • Expert Instructors
Request Class or call 1-877-932-8228

Live Online Training

$1,900.00
or 4 vouchers
  • Live Online Training
  • Expert Instructors
  • Guaranteed to Run
  • 100% Free Re-take Option
Request Class or call 1-877-932-8228
Overview

This course enables the experienced Java developer to use the Spring application framework to manage objects in a lightweight, inversion-of-control container, and to build persistence components and application tiers using Spring's support for relational databases and transaction control.

Spring's core module gives the developer declarative control over object creation and assembly; this is useful for any tier of any Java application, so we study it in some depth to begin the course. Then students build persistence code using the Spring DAO and ORM modules, using both JDBC and JPA, with Hibernate as the provider. We study both programmatic and declarative transaction control. The course concludes with a chapter on Spring's testing framework, with a focus on test-managed transactions.

Goals
  1. Understand the scope, purpose, and architecture of Spring
  2. Use Spring application contexts to declare application components, rather than hard-coding their states and lifecycles
  3. Use dependency injection to further control object relationships from outside the Java code base
  4. Use annotations to take advantage of Spring post-processors for automated bean instantiation and wiring
  5. Connect business objects to persistent stores using Spring's DAO and ORM modules
  6. Simplify JDBC code using Spring templates
  7. Integrate JPA entities and DAOs into Spring applications
  8. Control transactions using Spring, either programmatically or declaratively
  9. Develop effective unit tests using Spring's test framework
Outline
  1. Overview of Spring
    1. Java EE: The Good, The Bad, and the Ugly
    2. Enter the Framework
    3. Spring Value Proposition
    4. The Spring Container
    5. Web Applications
    6. Persistence Support
    7. Aspect-Oriented Programming
    8. The Java EE Module(s)
  2. The Container
    1. JavaBeans, Reconsidered
    2. The Factory Pattern
    3. Inversion of Control
    4. XML View: Declaring Beans
    5. Java View: Using Beans
    6. Singletons and Prototypes
  3. Instantiation and Configuration
    1. Configuring Through Properties
    2. Configuration Namespaces
    3. The p: Notation
    4. Bean (Configuration) Inheritance
    5. Configuring Through Constructors
    6. Bean Post-Processors
    7. Lifecycle Hooks
    8. Integrating Existing Factory Code
    9. Awareness Interfaces
  4. Dependency Injection
    1. Assembling Object Graphs
    2. Dependency Injection
    3. Single and Multiple Relationships
    4. The Utility Schema
    5. Using Spring Expression Language (SpEL)
    6. Inner Beans
    7. Autowiring
    8. @Component, @Service, & Company
    9. @Autowired Properties
    10. Best Practices with Spring Annotations
    11. Java Classes as @Configurations
    12. AnnotationConfigApplicationContext
    13. Capabilities and Limitations
    14. Mixing and Importing XML and Java Configurations
  5. Assembling Object Models
    1. Collections and Maps
    2. Support for Generics
    3. The Spring Utility Schema (util:)
    4. Autowiring to Multiple Beans
    5. Order of Instantiation
    6. Bean Factory vs. Application Context
  6. Persistence with JDBC
    1. Reducing Code Complexity
    2. The DataAccessException Hierarchy
    3. JdbcTemplate
    4. RowMapper<T> and ResultSetExtractor<T>
    5. The DaoSupport Hierarchy
    6. Capturing Generated Keys
    7. Transaction Control
    8. PlatformTransactionManager
    9. TransactionTemplate
    10. Isolation Levels
    11. Transaction Propagation
  7. Persistence with JPA
    1. Object/Relational Mapping
    2. The Java Persistence API
    3. JpaDaoSupport and JpaTemplate
    4. @PersistenceUnit and @PersistenceContext
    5. Shared Entity Managers
    6. Using <tx:annotation-driven>
    7. The @Transactional Annotation
    8. Isolation and Propagation
    9. A Limitation of @Transactional
    10. Understanding Entity States
    11. Configuring JPA Without persistence.xml
    12. Bean Validation in JPA
    13. Optimistic Locking
  8. Testing
    1. Testability of Spring Applications
    2. Dependency Injection
    3. Mocking
    4. SpringJUnit4ClassRunner
    5. TestContext
    6. @ContextConfiguration
    7. Preserving Test Isolation
    8. @DirtiesContext
    9. AbstractTransactionalJUnit4SpringContextTests
    10. Testing JPA Components
    11. Mixing JPA and JDBC
    12. TestTransaction
    13. Profiles
Class Materials

Each student in our Live Online and our Onsite classes receives a comprehensive set of materials, including course notes and all the class examples.

Class Prerequisites

Experience in the following is required for this Spring class:

  • Java programming is required
  • Basic knowledge of XML is recommended
  • For the final chapter some undersatnding of JUnit is required
Preparing for Class

No cancelation for low enrollment

Certified Microsoft Partner

Registered Education Provider (R.E.P.)

GSA schedule pricing

72,537

Students who have taken Live Online Training

15,169

Organization who trust Webucator for their training needs

100%

Satisfaction guarantee and retake option

9.42

Students rated our trainers 9.42 out of 10 based on 5,209 reviews

Contact Us or call 1-877-932-8228