Package org.int4.dirk.api.definition
Class CyclicDependencyException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.int4.dirk.api.definition.DependencyException
-
- org.int4.dirk.api.definition.CyclicDependencyException
-
- All Implemented Interfaces:
java.io.Serializable
public class CyclicDependencyException extends DependencyException
Thrown when a type or a group of types which are being registered has a dependency which directly or indirectly refers to the type containing the dependency, otherwise known as a cyclical dependency.If the cyclical dependency cannot be resolved (by means of proxies for example) the injector can throw this exception to indicate the types involved. If this exception is thrown, the problem can be solved by the user by breaking the cyclical dependency or by using a provider for one of the dependencies in the cycle.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CyclicDependencyException(java.lang.String message)Constructs a new instance.
-