org.jdtaus.core.container
Class DependencyCycleException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by java.lang.IllegalStateException
                  extended by 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

Constructor Summary
DependencyCycleException(Implementation impl1, Implementation impl2)
          Creates a new DependencyCycleException taking the involved implementations.
DependencyCycleException(String identifier1, String identifier2)
          Creates a new DependencyCycleException taking identifiers of the involved implementations.
 
Method Summary
 Implementation[] getImplementations()
          Gets the implementation introducing a cycle.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.
Method Detail

getImplementations

public Implementation[] getImplementations()
Gets the implementation introducing a cycle.

Returns:
the implementations introducing a cycle.


Copyright © 2005-2009 jDTAUS. All Rights Reserved.