Java EE Programming: Spring 3.0, Part 2 of 7
Interactive

Java EE Programming: Spring 3.0, Part 2 of 7

LearnNow Online
Updated Oct 25, 2018

Course description

The Spring framework is an application framework that provides a lightweight container that supports the creation of simple to complex components in a non-invasive fashion. The Spring flexibility and transparency is congruent and supportive of incremental development and testing. The framework structure supports the layering of functionality such as persistence, transactions, view-oriented frameworks, and enterprise systems and capabilities. Spring makes JavaEE development easier. Spring simplifies common tasks and encourages good design based on programming to interfaces. Spring makes your application easier to configure and reduces the need for many JEE design patterns. Spring puts the OO design back into your JEE application. This Spring course will take an in-depth tour of the basic Spring framework, initially examining concepts such as Inversion of Control and Dependency Injection, and then working with the container and basic components. The improved Spring 3.0 configuration management options centered on the Spring Expression Language (SPEL) is covered. The course then moves into the areas of persistence and transactions, looking at various options including both JDBC and Hibernate. You will then look at options for handling the view portion of MVC web architecture.

Each LearnNowOnline training course is made up of Modules (typically an hour in length). Within each module there are Topics (typically 15-30 minutes each) and Subtopics (typically 2-5 minutes each). There is a Post Exam for each Module that must be passed with a score of 70% or higher to successfully and fully complete the course.


Prerequisites

This an intermediate- level Spring 3.0 training course, designed for developers who need to understand how and when to use Spring in Java and JEE applications. You should have practical basic Java development experience.


Meet the expert

Greg Matus

Greg Matus combines his practical programming skills and mentoring excellence to develop the highest quality educational programs available. His technical focus includes developing programs and projects focused around advanced application development, performance, and tuning skills and technologies. His specialties include Java, advanced J2EE / JEE, AJAX, XML, Web Services, JSP, SQL, JDBC and Database topics, Oracle, Eclipse, WebLogic, and more.

Video Runtime

234 Minutes

Time to complete

294 Minutes

Course Outline

Spring AOP

AOP (17:37)

  • Introduction (01:01)
  • Spring Architecture (00:13)
  • Aspect Oriented Programming (00:36)
  • What is AOP (02:54)
  • Cross Cutting Concerns (00:39)
  • What is an Aspect (01:48)
  • Aspects and Decoupling (02:33)
  • Structure of Proxy - version 1 (00:22)
  • Structure of Proxy - version 2 (00:49)
  • Tradeoffs Between Styles (01:40)
  • Some AOP Vocabulary (01:22)
  • Cross Cutting Concerns (00:47)
  • Why is AOP so Important (01:35)
  • Summary Crosscutting Concerns (00:52)
  • Summary (00:21)

AOP in Spring (27:56)

  • Introduction (00:30)
  • Spring: AOP in a Nutshell (04:51)
  • Complete AOP HelloWorld Example (01:15)
  • The Simplest Advice (01:46)
  • Demo: Ice Cream (02:56)
  • Complete Advice & Config File (03:17)
  • Demo: Adding Welcome Advice (12:10)
  • Summary (01:08)
Interceptors

More About Interceptors (48:07)

  • Introduction (00:29)
  • MethodBeforeAdvice (03:35)
  • The Method Class (01:13)
  • Three Technologies of Weaving (01:57)
  • The Generated Proxy Object (02:23)
  • The Cost of Using a Proxy (01:35)
  • Aspects/Proxies Costs/Benefits (02:21)
  • Four Kinds of Advice (01:53)
  • Spring Advice Types (02:16)
  • MethodBeforeAdvice (01:38)
  • AfterReturningAdvice (01:07)
  • ThrowsAdvice (04:22)
  • Demo: Interceptors (22:58)
  • Summary (00:14)

Method Interceptor (38:40)

  • Introduction (00:49)
  • MethodInterceptor (03:01)
  • ExampleInterceptor (04:30)
  • Demo: Around Advice (10:01)
  • Demo: Initial Test (08:33)
  • Demo: Debugging (11:28)
  • Summary (00:16)
IoC and Join Points

Join Points and Pointcuts (47:59)

  • Introduction (00:33)
  • Joinpoints (03:22)
  • Pointcuts - Specify Joinpoints (02:00)
  • Where do Joinpoints fit (01:07)
  • AOP Definitions (01:54)
  • PointCuts (07:32)
  • Static PointCuts (01:33)
  • Dynamic PointCuts (02:56)
  • Pre-built Spring PointCuts (03:25)
  • Regular Expression PointCuts (04:02)
  • Custom PointCut Implementations (01:35)
  • Pointcuts util class (02:01)
  • The Advisor (02:58)
  • DefaultPointcutAdvisor (02:23)
  • RegexpMethodPointcutAdvisor (00:39)
  • Overview of the AOP Components (00:44)
  • Proxy Configuration (00:49)
  • ProxyConfig (00:36)
  • ProxyFactoryBean (03:01)
  • BeanNameAutoProxyCreator (01:42)
  • DefaultAdvisorAutoProxyCreator (01:46)
  • Overview of the AOP Components (00:52)
  • Summary (00:18)

IOC and Annotation Based AOP (54:27)

  • Introduction (00:22)
  • Demo: Adding Statistics (09:40)
  • Demo: Search Statistics Advice (10:41)
  • Demo: BeanNameAutoProxyCreator (20:59)
  • Demo: Test Client (12:13)
  • Summary (00:30)