PDA

View Full Version : Cyclic dependencies/references and autowiring



geira
Aug 13th, 2009, 02:05 AM
We have som managers autowired referencing each other.

Manager1 uses Manager2
Manager2 uses Manager1

The managers gets autowired without any problem, and the applications runs without any problem.

Is this problem?

Geir

karldmoore
Aug 13th, 2009, 06:53 AM
The managers gets autowired without any problem, and the applications runs without any problem. Is this problem?

Is it a problem that it works ;), I'd guess not. You might want to avoid cyclic dependencies too often though as that might be symptom that what you're doing is wrong.