Yep, yep that looks like a problem right there! I've got some ideas,
this should be doable. See what I was saying a second ago about Sean
Monkey-Wrench Corfield over there? It'll be a fun puzzle to solve
though, we'll share some notes and get it done!
On Mar 15, 2006, at 8:16 PM, Sean Corfield wrote:
On 3/15/06, Sean Corfield <[EMAIL PROTECTED]> wrote:
Here's (almost) the scenario I am trying to create:
- I have a factory object
- I have an aspect I want to apply to the factory object
- The aspect depends on the factory
OK, it turns out to be unrelated to the factory bean stuff as far as I
can tell. It seems that you simply cannot have an aspect that depends
on the object it is being applied to.
Here's the sequence of events that causes a problem:
- createProxyInstance() called to create the AOP proxy
- it calls buildAdvisorChain()
- that calls getBean() on the interceptor...
...and that in turn ends up calling createProxyInstance() as it tries
to resolve the proxied object! Ugh!
I have a very simple test case (and I discussed it with Chris so he's
going to dig into this).
--
Sean A Corfield -- http://corfield.org/
Got frameworks?
"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood