Exception that is thrown when a
Container detects a cyclic
dependency. A cyclic dependency occurs when the graph that describes the
components and their dependency relationship contains a cycle.
For example:
A --> B --> C --> D --+
^ | <-- cycle!
| |
+---------------------+
In code:
public classs AImpl implements A
{
public AImpl( B ) { ... }
}
public classs BImpl implements B
{
public BImpl( C ) { ... }
}
public classs CImpl implements C
{
public CImpl( D ) { ... }
}
public classs DImpl implements D
{
public DImpl( A ) { ... }
}
author: Leo Simons version: $Id: CyclicDependencyException.java,v 1.6 2004/02/29 19:21:35 lsimons Exp $ |