I wanted to clarify for me.
I read about the concept of AOP, and I realized that this is a great way to share cross-sectional services. (registration, security, transaction ...)
But I would like to say / ask something about this idea and its implementation.
I read that there are some ways, like AspectJ, JBOSS AOP, to assimilate AOP for my business logic.
but hasn't it been here for a long time?
let's say, for example, I want to share a registry or security implementation among my components (Java beans, EJB'S, whatever ..)
Why can't I create a Singleton bean to make sure that it will have only one instance, and as soon as any component needs its registration / security service, it will look for and use it.
Why do I need to understand and have all these “big” implementations like aspectj or jboss AOP? What am I missing here?
source share