JBoss Modular Service Kernel API 1.0.0.CR2

org.jboss.msc.service
Class CircularDependencyException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.jboss.msc.service.ServiceRegistryException
                  extended by org.jboss.msc.service.CircularDependencyException
All Implemented Interfaces:
Serializable

public class CircularDependencyException
extends ServiceRegistryException

Exception used to indicate there was a circular dependency discovered during resolution.

Author:
John Bailey
See Also:
Serialized Form

Constructor Summary
CircularDependencyException(String msg, ServiceName[] cycle)
          Constructs a CircularDependencyException with the specified detail message.
 
Method Summary
 ServiceName[] getCycle()
          Returns a cycle found during service installation.
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CircularDependencyException

public CircularDependencyException(String msg,
                                   ServiceName[] cycle)
Constructs a CircularDependencyException with the specified detail message. The cause is not initialized, and may subsequently be initialized by a call to initCause.

Parameters:
msg - the detail message
Method Detail

getCycle

public ServiceName[] getCycle()
Returns a cycle found during service installation.

Returns:
an array formed by the service names involved in the cycle, in dependency order. Last name in the array has a dependency on the name in the first position, thus completing the cycle.

JBoss Modular Service Kernel API 1.0.0.CR2

Copyright © 2011 JBoss, a division of Red Hat, Inc.