|
|
Configuring singleton aspectj aspects: the timing issue?
This section here discusses how to configure aspectj aspects in a Spring context:
sp...p-aj-configure
For a singleton aspect, is it important that the aspect bean definition is processed before any of its intended join points gets advised?
An aspect instance must be configured before execution of an advice in it (consequently, execution of an advised join point) that uses an injected dependency. Thus, if an aspect contains multiple advice, each with a different set of advised join points, then the aspect need to be configured only before the execution of an advice that uses an injected dependency.
-Ramnivas |
|