Szkolenia Capstone Courseware

Cel szkolenia szkolenie zdalne - dlearning

kod: CC-117B | wersja: v4.2

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.

Learning Objectives

  • Understand the scope, purpose, and architecture of Spring
  • Use Spring application contexts to declare application components, rather than hard-coding their states and lifecycles
  • Use dependency injection to further control object relationships from outside the Java code base
  • Use annotations to take advantage of Spring post-processors for automated bean instantiation and wiring
  • Connect business objects to persistent stores using Spring's DAO and ORM modules
  • Simplify JDBC code using Spring templates
  • Integrate JPA entities and DAOs into Spring applications
  • Control transactions using Spring, either programmatically or declaratively
  • Develop effective unit tests using Spring's test framework

Plan szkolenia Rozwiń listę

  1. Overview of Spring
    • Java EE: The Good, The Bad, and the Ugly
    • Enter the Framework
    • Spring Value Proposition
    • The Spring Container
    • Web Applications
    • Persistence Support
    • Aspect-Oriented Programming
    • The Java EE Module(s)
  2. The Container
    • JavaBeans, Reconsidered
    • The Factory Pattern
    • Inversion of Control
    • XML View: Declaring Beans
    • Java View: Using Beans
    • Singletons and Prototypes
  3. Instantiation and Configuration
    • Configuring Through Properties
    • Configuration Namespaces
    • The p: Notation
    • Bean (Configuration) Inheritance
    • Configuring Through Constructors
    • Bean Post-Processors
    • Lifecycle Hooks
    • Integrating Existing Factory Code
    • Awareness Interfaces
  4. Dependency Injection
    • Assembling Object Graphs
    • Dependency Injection
    • Single and Multiple Relationships
    • The Utility Schema
    • Using Spring Expression Language (SpEL)
    • Inner Beans
    • Autowiring
    • @Component, @Service, & Company
    • @Autowired Properties
    • Best Practices with Spring Annotations
    • Java Classes as @Configurations
    • AnnotationConfigApplicationContext
    • Capabilities and Limitations
    • Mixing and Importing XML and Java Configurations
  5. Assembling Object Models
    • Collections and Maps
    • Support for Generics
    • The Spring Utility Schema (util:)
    • Autowiring to Multiple Beans
    • Order of Instantiation
    • Bean Factory vs. Application Context
  6. Persistence with JDBC
    • Reducing Code Complexity
    • The DataAccessException Hierarchy
    • JdbcTemplate
    • RowMapperand ResultSetExtractor
    • The DaoSupport Hierarchy
    • Capturing Generated Keys
    • Transaction Control
    • PlatformTransactionManager
    • TransactionTemplate
    • Isolation Levels
    • Transaction Propagation
  7. Persistence with JPA
    • Object/Relational Mapping
    • The Java Persistence API
    • JpaDaoSupport and JpaTemplate
    • @PersistenceUnit and @PersistenceContext
    • Shared Entity Managers
    • Using
    • The @Transactional Annotation
    • Isolation and Propagation
    • A Limitation of @Transactional
    • Understanding Entity States
    • Configuring JPA Without persistence.xml
    • Bean Validation in JPA
    • Optimistic Locking
  8. Testing
    • Testability of Spring Applications
    • Dependency Injection
    • Mocking
    • SpringJUnit4ClassRunner
    • TestContext
    • @ContextConfiguration
    • Preserving Test Isolation
    • @DirtiesContext
    • AbstractTransactionalJUnit4SpringContextTests
    • Testing JPA Components
    • Mixing JPA and JDBC
    • TestTransaction
    • Profiles
Pobierz konspekt szkolenia w formacie PDF

Dodatkowe informacje

Wymagania wstępne
Poziom trudności
Czas trwania 3 dni
Certyfikat

The participants will obtain certificates signed by Capstone Courseware.

Prowadzący

Authorized Capstone Courseware Trainer.

Pozostałe szkolenia Capstone Courseware | Open-Source Frameworks

Szkolenia powiązane tematycznie

Java

Programowanie

Formularz kontaktowy

Prosimy o wypełnienie poniższego formularza, jeśli chcą Państwo uzyskać więcej informacji o powyższym szkoleniu.






* pola oznaczone (*) są wymagane

Informacje o przetwarzaniu danych przez Compendium – Centrum Edukacyjne Spółka z o.o.

CENA SZKOLENIA OD 3150 PLN NETTO

Najbliższe szkolenia Capstone Courseware

Harmonogram szkoleń
Capstone Courseware