-
Mar 10th, 2010, 07:17 AM
#1
Aspects instances scheme-based
Hi, Spring expert
I'm working with scheme-based AOP support, and i canīt have more one
instance of aspect (bean) when intercepts the same event but of diferent domains beans. I need save a state in the aspects, then i need more one instance. Can i do this with scheme-bases support?? how???
Sorry for my english.
Thanks and bye
-
Mar 10th, 2010, 10:06 AM
#2
Spring uses a proxy based aop approach and therefor needs instances. So basically what you want isn't available with this approach, if you want more you want to revert to full blown aspectj and loadtime and/or compile time weaving.
As a workaround you could store the state in a ThreadLocal instead of the instance of the Aspect.
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