org.jdtaus.core.container
Class DependencyCycleException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalStateException
org.jdtaus.core.container.DependencyCycleException
- All Implemented Interfaces:
- Serializable
public class DependencyCycleException
- extends IllegalStateException
Gets thrown for cyclic dependency graphs.
- Version:
- $Id: DependencyCycleException.java 8044 2009-07-02 01:29:05Z schulte2005 $
- Author:
- Christian Schulte
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
DependencyCycleException
public DependencyCycleException(Implementation impl1,
Implementation impl2)
- Creates a new
DependencyCycleException taking the involved
implementations.
- Parameters:
impl1 - the implementation the cycle was detected for.impl2 - the implementation introducing the cycle to impl1.
- Throws:
NullPointerException - if either impl1 or impl2
is null.
DependencyCycleException
public DependencyCycleException(String identifier1,
String identifier2)
- Creates a new
DependencyCycleException taking identifiers of the
involved implementations.
- Parameters:
identifier1 - the identifier of the implementation the cycle was
detected for.identifier2 - the identifier of the implementation introducing the
cycle.
- Throws:
NullPointerException - if either identifier1 or
identifier2 is null.
getImplementations
public Implementation[] getImplementations()
- Gets the implementation introducing a cycle.
- Returns:
- the implementations introducing a cycle.
Copyright © 2005-2009 jDTAUS. All Rights Reserved.