-
Creating, Retrieving and Using Spring-Managed Beans
7 Lessons-
StartSection Introduction
-
StartCreating a Bean Managed with Spring's XML Container Configuration
-
PreviewRetrieving and Using a Bean from the Spring Container
-
StartUsing the Classpath XML Application Context
-
StartUnderstanding Singleton Scope
-
StartUnderstanding Prototype Scope
-
StartUnderstanding How Spring Creates Stateless Beans
-
-
Understanding Dependency Injection and Inversion of Control
11 Lessons-
StartSection Introduction
-
StartCoding Beans to Use Constructor Dependency Injection
-
StartInterpreting a Spring Container Exception
-
StartApplying Constructor Dependency Injection to XML Configuration
-
StartVerifying the Constructor Dependency Injection with the Debugger
-
StartThe Sharability of Beans in an IoC Container
-
StartThe Benefits of Dependency Injection in an IoC Container
-
StartThe Hollywood Principle
-
StartCoding Beans to Use Setter Dependency Injection
-
StartApplying Setter Dependency Injection in XML Configuration
-
StartVerifying the Setter Dependency Injection with the Debugger
-
-
Autowiring Dependencies in the Spring Container
15 Lessons-
StartSection Introduction
-
StartAdding Component Scanning to Autodetect Spring Managed Bean Annotations
-
StartCoding Beans to be Automanaged and Autowired by Spring via Annotations
-
StartThe Advantage of Annotation-based Configuration over XML Configuration
-
StartVerifying the Annotation-driven Autowired Beans
-
StartSpring's Stereotype Annotations for Better Code Readability
-
StartSetter Dependency Injection with Annotations
-
StartConstructor Dependency Injection with Annotations
-
StartUsing the Annotation-Based Application Context
-
StartCreating a Java Configuration Class
-
StartApplying Java-based configuration with @Bean
-
StartUsing Scopes with Java-based Configuration
-
StartModeling a More Complex Application to Demonstrate Autowiring Ambiguity Issues
-
StartResolving Ambiguous Arguments of the Same Type by Narrowing the Reference Type
-
StartResolving Ambiguous Arguments of the Same Type by Using @Qualifier
-
-
Using Properties and Profiles in Spring Projects
11 Lessons-
StartSection Introduction
-
StartInjecting Properties read from a Properties File with @Value in Spring Managed Beans
-
StartExploring Property Overriding in Spring
-
StartAccessing and using properties with PropertyPlaceholder in XML Configuration
-
StartSpecifying default properties for property values
-
StartExceptions for Missing property keys in Spring
-
StartResolving and Using a Property Value in a Bean definition in XML Configuration
-
StartAccessing the Current Active Profiles with the Environment interface
-
StartSetting the current active profile programmatically and through a property switch
-
StartCreating Profile-specific bean configuration
-
StartConditional Beans with @Profile
-
-
Getting to Know the Spring Container
11 Lessons-
StartThe Proxy Design Pattern
-
StartSeeing Proxies in Action
-
StartThe Disadvantages of a Regular Proxy
-
StartUnderstanding JDK Dynamic Proxies
-
StartDynamic Proxies in Spring
-
StartUnderstanding How Spring Makes Service Methods Transactional using Proxies
-
StartSpring Managed Bean Lifecycle Callback Methods
-
StartJDK Standard Lifecycle Annotations (@PostConstruct and @PreDestroy)
-
StartThe Sequence of Spring Container Callbacks on a Spring Managed Bean
-
StartApplication Container Callbacks and Events
-
StartUsing the Aware Interfaces to Access Lower-Level Spring Framework Components
-
-
Accessing Databases with Spring
6 Lessons-
StartUsing JDBC DAO Support to Remove Boilerplate JDBC Code
-
StartCreating and Configuring Data Sources
-
StartCreating a Data Access Object to Access a Database
-
StartConnection Pool Data Sources in Spring
-
StartCreating a JDBC Template to Access a Database
-
StartUsing JDBC Templates to Insert and Query Data
-
-
Aspect Oriented Programming in Spring
6 Lessons -
Web Application Development in Spring
14 Lessons-
StartPreparing a Maven Project to Use Spring MVC
-
StartRegistering the Dispatcher Servlet as Front Controller
-
StartCreating the Web Application Context
-
StartCreating a Controller Class
-
StartConfiguring the Jetty Plugin in Maven to Run a Web App
-
StartSetting Up Remote Debugging of a Web App
-
StartUnderstanding the Dispatcher Servlet Processing Flow
-
StartWriting a Controller to Service Web Requests
-
StartRendering a JSP-Based View with View Resolvers
-
StartUnderstanding How a Request is Serviced
-
StartPassing a Model to the View for More Dynamic Pages
-
StartInjecting the HTTP Servlet Request and Response into a Controller
-
StartPassing Request Parameters and Query Strings to a Controller
-
StartUsing Path Variables to Access Parts of the Request Path
-
