I have a web application (Spring, Java) interacting with some “plugins” in my system (for example sending email, or saving user input when necessary) the communication is done with Spring AOP.
Because it is hard to maintain and debug now I want to convert it to an Event-Based system, I want the same functionality to be done in java code events but not from Spring AOP.
What do you think about this? Any inspiring ideas?
If you are looking for in JVM straight forward event system, it is worth looking at how Spring ‘s Apllication Events work. You can start from org.springframework.context.support.AbstractApplicationContext. This class has code for publish events, register events etc. Spring also takes care of auto registration of listeners for a event.