At cf.Objective() I talked about a problem I'd hit with an edge case
around AOP and the factory bean stuff.

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

This works if I make the aspect depend on the original factory (i.e.,
the target) but not if I make it depend on the proxied factory (i.e.,
the one with the aspect applied to it).

Now, my actual problem is that my aspect really depends on an object
that is created by the factory. So aspect depends on object depends on
(proxied) factory.

As I noted at the conference, this causes an infinite loop and takes
down the server.

The "good" news is that I have isolated the repeatable failure in a
simple test case so I'm actually able to start debugging it. The bad
news is that having spent several hours tracing through the code, I
haven't yet figured out what the problem actually is (but I think I'm
getting close).

If anyone wants my test case to try to debug it, let me know offlist
(use sean at corfield dot org).

I believe ColdSpring *should* be able to handle this because it's just
a regular circular dependency, using setter injection... well, almost
:)
--
Sean A Corfield -- http://corfield.org/
Got frameworks?

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

Reply via email to