Skip to content

mate-academy/spring-aop-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring AOP example

The idea of this app is to show AOP in use.

  1. General concepts:

    • Interface TaskChecker describes a general approach on how to validate the TaskRequest objects
    • As a result check method will return TaskResult
    • After each call of check, we need to send data to a third party server that collects user attempts statistic data.
  2. There are three controllers. Consider we can't have one general controller, so for each course (Java, JS, SQL, Python, etc.), we will have a separate controller.

  3. Adding the logic of sending task check result to a 3-rd party server is not an action for controllers or TaskChecker interface implementations.

  4. See StatisticsAspect.java class as an example of an aspect that performs sending of statistic to a third-party server

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages