Skip to content

Sample application for spring AOP driven with custom annotations, events and specified class methods

Notifications You must be signed in to change notification settings

lavkherwa/Spring-AOP-Example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 

Repository files navigation

Spring-AOP

Sample application for spring AOP driven with custom annotations, events and specified class methods

Any method annotated with the provided annotation will be considered for pointCut ;)

Logging Aspect (custom annotation based)

Custom annotation Link
Aspects implementation Link

How to define pointCut for custom annotation Link

Service Aspect (called on all methods of given service)

Aspect implementation Link

How to define pointCut for all methods in given class Link

Handling Events for logging Aspect

Event Defination for LoggingEvent Link
Event Listener for LoggingEvent Link
Firing LoggingEvent from Aspect Link

By default spring events are synchronous, to make them run asynchronously I have added below configuration
configuration

About

Sample application for spring AOP driven with custom annotations, events and specified class methods

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages