-
Get a comprehensive overview of Spring, the enterprise application framework and inversion-of-control container for Java.
Spring is an application framework and inversion-of-control (IOC) container for the Java platform. The framework's core features can be used by any Java application and are ideal for enterprise and internet-based app development. Get a comprehensive overview of Spring in this intermediate-level course with software architect Frank Moley. Frank develops applications and web services with Spring, and shares what he knows about configuring the ApplicationContext (the interface for accessing components, loading files, publishing events, and more), as well as the beans (objects within the Spring IOC container). He demonstrates a modern Java configuration workflow and explores the Spring lifecycle in depth, so you can extend the framework and better troubleshoot any issues you have with your applications. Plus, learn how to use aspect-oriented programming to add behaviors to your apps in a reusable way.
Overview
Syllabus
-
Introduction
- Building blocks of Spring
- What you should know
- Introduction to Spring
- The inversion of control (IoC) container
- Introduction to the ApplicationContext
- Configuration of Spring with Java
- Work with the environment
- Profiles
- Spring Expression Language
- Bean scopes
- Proxies
- The component scan
- Implementing component scanning
- Lifecycle methods
- Why the lifecycle is so important
- The overall picture
- The init phase: Loading bean definitions
- Init: Bean factory post-processing
- Init: Bean instantiation
- Init: Setters
- Init: Bean post-processing
- Init: Differences based on configuration
- The use phase
- The destruction phase
- Aspecting in Spring
- Define aspect-oriented programming (AOP) pointcuts
- Implement AOP advice: Before
- Implement AOP advice: After
- Implement AOP advice: Around
- Challenge: Building your own aspect
- Solution: Building your own aspect
- Next steps