This course enables the experienced Java developer to use the Spring application framework to manage objects in a lightweight "IoC" (inversion-of-control) container. Spring is a far-reaching framework that aims to facilitate all sorts of Java development, including every level of multi-tier distributed systems. Here we focus on the "Core" module of the framework, developing facility in instantiating, configuring, and assembling Spring beans for various purposes.
The Core module gives the developer declarative control over object creation and assembly; this is useful for any tier of any Java application, and so this material also forms the basis for other Spring courses on persistence, web applications, and REST web services.
- Java programming is excellent preparation.
- Basic knowledge of XML
- Understand the scope, purpose, and architecture of Spring
- Use Spring's bean factories and 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
- Configure systems of Spring beans using either Java or XML.
Chapter 1. Overview of Spring
Chapter 2. The Container
- 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)
Chapter 3. Instantiation and Configuration
- JavaBeans, Reconsidered
- The Factory Pattern
- Inversion of Control
- XML View: Declaring Beans
- Java View: Using Beans
- Singletons and Prototypes
Chapter 4. Dependency Injection
- 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
Chapter 5. Assembling Object Models
- Assembling Object Graphs
- Dependency Injection
- Single and Multiple Relationships
- The Utility Schema
- Using Spring Expression Language (SpEL)
- Inner Beans
- @Component, @Service, & Company
- @Autowired Properties
- Best Practices with Spring Annotations
- Java Classes as @Configurations
- Capabilities and Limitations
- Mixing and Importing XML and Java Configurations
- Collections and Maps
- Support for Generics
- The Spring Utility Schema (util:)
- Autowiring to Multiple Beans
- Order of Instantiation
- Bean Factory vs. Application Context
Hardware Requirements (Minimum)
Hardware Requirements (Recommended)
- Core i5, 1.8 GHz, 4 gig RAM, 1 gig disk space.
- Core i5, 2.8 GHz GHz, 8 gig RAM, 1 gig disk space.
Network and Security
- ested on Windows 7/8, Mac OS 10.8.5.
- Limited privileges required
- All free downloadable tools.