Package org.jboss.msc.service
Class CircularDependencyException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.jboss.msc.service.ServiceRegistryException
-
- org.jboss.msc.service.CircularDependencyException
-
- All Implemented Interfaces:
java.io.Serializable
public class CircularDependencyException extends ServiceRegistryException
Exception used to indicate there was a circular dependency discovered during resolution.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private ServiceName[]
cycle
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description CircularDependencyException(java.lang.String msg, ServiceName[] cycle)
Constructs aCircularDependencyException
with the specified detail message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceName[]
getCycle()
Returns a cycle found during service installation.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
cycle
private ServiceName[] cycle
-
-
Constructor Detail
-
CircularDependencyException
public CircularDependencyException(java.lang.String msg, ServiceName[] cycle)
Constructs aCircularDependencyException
with the specified detail message. The cause is not initialized, and may subsequently be initialized by a call toinitCause
.- 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.
-
-