org.jboss.seam
Class CyclicDependencyException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalStateException
org.jboss.seam.CyclicDependencyException
- All Implemented Interfaces:
- Serializable
public class CyclicDependencyException
- extends IllegalStateException
An exception that is thrown when BijectionInterceptor
detects that a
component's dependencies cannot be injected due to a cyclic dependency. As
the exception is passed up the stack, the call sequence is recorded so that a
useful exception message can be constructed.
- Author:
- Matt Drees
- See Also:
- Serialized Form
CyclicDependencyException
public CyclicDependencyException()
addInvocation
public void addInvocation(String componentName,
Method method)
- Records this invocation's component name and method to be displayed in
getMessage()
, unless this invocation is not part of the detected
cycle. This method will be successively called as the exception is
propagated up the stack.
- Parameters:
componentName
- method
-
getMessage
public String getMessage()
- Overrides:
getMessage
in class Throwable