Aug 15th, 2006, 08:12 PM
Configuring singleton aspectj aspects: the timing issue?
This section here discusses how to configure aspectj aspects in a Spring context:
For a singleton aspect, is it important that the aspect bean definition is processed before any of its intended join points gets advised?
Aug 16th, 2006, 01:30 PM
Generally speaking, yes
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.