Is there a way to customize how the various Aspects (or their respective advisers, to be more precise) are initialized in Spring? Note that I'm not talking about ordering, but initializing aspects.
The background to this issue is a precedent with a Aspect Adependent on Service Xwhich should be reported Aspect B. However, since it Aspect Afirst initializes and forces the creation Service X, it Aspect Bdoes not apply to the service.
How to change the initialization order without making it Service Xdependent on Aspect B(this would be a workaround as it provides the required order, but the service should never deal with its aspects ...)?
If you need a general picture of my problem, here is another question that made me ask about it.
source
share