Package edu.ucsb.cs156.dining.aop
Class LoggingAspect
java.lang.Object
edu.ucsb.cs156.dining.aop.LoggingAspect
This class is an Aspect that logs all invocations of controller methods that are annotated
with
@RequestMapping, @GetMapping, @PostMapping, @PutMapping, @DeleteMapping,
or @PatchMapping.
For more information on Aspect Oriented Programming (AOP)
and AspectJ, including what a JoinPoint is,
refer to https://www.baeldung.com/aspectj-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidlogControllers(org.aspectj.lang.JoinPoint joinPoint) This method is called before any controller method that is annotated with@RequestMapping,@GetMapping,@PostMapping,@PutMapping,@DeleteMapping, or@PatchMapping.
-
Constructor Details
-
LoggingAspect
public LoggingAspect()
-
-
Method Details
-
logControllers
public void logControllers(org.aspectj.lang.JoinPoint joinPoint) This method is called before any controller method that is annotated with@RequestMapping,@GetMapping,@PostMapping,@PutMapping,@DeleteMapping, or@PatchMapping.- Parameters:
joinPoint- the join point (injected by Spring framework)
-