Java Spring: Aspect-Oriented Programming Using Spring AOP

Java developers seeking to learn how to implement aspects and advice in their Spring applications

Prerequisite
None

Expected Duration
228 minutes

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.

Objective

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

MONTHLY SUBSCRIPTION

$129/month
 

ANNUAL SUBSCRIPTION

$1295/year

Multi-license discounts available for Annual and Monthly subscriptions.