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
