Class ScopeConflictException

  • All Implemented Interfaces:
    java.io.Serializable

    public class ScopeConflictException
    extends DependencyException
    Thrown during registration when a type is determined to dependent on a normal scoped type of a different scope than the type being registered, and the injector is not able or configured to resolve the problem itself (for example, by using a proxy).

    A dependency resulting in a scope conflict can be wrapped in a provider to resolve this problem. When called, the provider may still fail at run time if the scope of the dependency is not active.

    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ScopeConflictException​(java.lang.String message, java.lang.Throwable cause)
      Constructs a new instance.
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, 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

      • ScopeConflictException

        public ScopeConflictException​(java.lang.String message,
                                      java.lang.Throwable cause)
        Constructs a new instance.
        Parameters:
        message - a message
        cause - a cause