• Online, Self-Paced
Course Description

The Spring Framework is an open source framework and inversion of controller container for the Java platform. The Spring Framework is one of the most popular application development frameworks for creating enterprise Java applications. This course covers using aspect-oriented concepts in a Spring application. In this course, you will learn how to implement aspect-oriented programming, or AOP, in a Spring application by using Spring AOP.

Learning Objectives

Getting Familiar with Aspect-Oriented Programming

  • start the course
  • recognize the concepts involved in Aspect-Oriented Programming
  • recognize some of the benefits of Aspect-Oriented Programming
  • become familiar with AOP terminology
  • create a simple aspect in XML configuration in a Spring application
  • create pointcuts that can be reused
  • create a simple aspect using annotations in a Spring application
  • access information about the current JoinPoint (method execution) in advice body
  • configure Spring AOP in a Spring application with a Java-based configuration
  • understand Spring AOP's proxy-based approach to aspect-oriented programming

Working with Advice

  • recognize the different types of advice you can use when using Spring AOP
  • advise a method execution in Spring with Before advice
  • advise a method execution in Spring with After Returning advice
  • advise a method execution in Spring with After Throwing advice
  • advise a method execution in Spring with After (Finally) advice
  • advise a method execution in Spring with Around advice
  • access and work with thrown exceptions within the body of Around advice
  • access and work with values returned from method executions within the body of Around advice

Working with Pointcuts

  • recognize how pointcuts are declared
  • declare and combine pointcuts
  • use pointcut expressions to match method executions with specific return types
  • use pointcut expressions to match method executions with specific method names
  • use pointcut expressions to match method executions with specific method parameters

Getting Familiar with Designators

  • recognize the different types of pointcut designators supported by Spring AOP
  • use pointcut expressions to match method executions in packages and classes
  • use the args pointcut designator to match method executions with specific arguments
  • use the bean pointcut designator to match method executions from specific beans
  • use the annotation pointcut designator to match method executions with specific annotations

Practice: Using Aspect-Oriented Concepts in Spring

  • implement aspects and advice in a Spring application

Framework Connections

The materials within this course focus on the Knowledge Skills and Abilities (KSAs) identified within the Specialty Areas listed below. Click to view Specialty Area details within the interactive National Cybersecurity Workforce Framework.