-
Aug 15th, 2006, 08:12 PM
#1
Configuring singleton aspectj aspects: the timing issue?
This section here discusses how to configure aspectj aspects in a Spring context:
http://static.springframework.org/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?
--Jing Xue
-
Aug 16th, 2006, 01:30 PM
#2
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.
-Ramnivas
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules