Spring Framework: Spring Expression Language (SpEL)
This course guides experienced Spring developers to leverage the power of SpEL to query and manipulate an object / object graph at run time, making it possible to dynamically inject values or objects in to other beans.
What you'll learn
Spring Expression Language (SpEL), introduced with Spring 3.0 back in 2009, is a powerful yet seemingly underutilized feature of Spring. In this course, you'll learn to harness it's power in dynamic bean wiring/ dependency injection which is made possible through writing String expressions that gets evaluated at run time. First, you'll discover how to leverage the power of SpEL to query and manipulate an object. Next, you'll see how to use an object graph at run time, making it possible to dynamically inject values or objects in to other beans. Finally, you'll explore the conditionalization ability of SpEL to pick the right bean or value to dependency inject based on the conditions in an application. When you're finished with this course, you'll be able to apply SpEL to any application.
Table of contents
- Module Overview 1m
- The @Value Annotation 2m
- Demo: Using SpEL with @Value Annotation 7m
- Collection Manipulation with SpEL 0m
- Demo: Collection Manipulation with SpEL in Action 5m
- Expression Templates 1m
- Demo: Expression Templates in Action 1m
- Demo: Using SpEL with XML 3m
- Typical Usages of SpEL 1m
- Summary 1m