Class DefaultServiceLocator.ErrorHandler

    • Constructor Summary

      Constructors 
      Constructor Description
      ErrorHandler()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void serviceCreationFailed​(java.lang.Class<?> type, java.lang.Class<?> impl, java.lang.Throwable exception)
      Handles errors during creation of a service.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • serviceCreationFailed

        public void serviceCreationFailed​(java.lang.Class<?> type,
                                          java.lang.Class<?> impl,
                                          java.lang.Throwable exception)
        Handles errors during creation of a service. The default implemention does nothing.
        Parameters:
        type - The interface describing the service, must not be null.
        impl - The implementation class of the service, must not be null.
        exception - The error that occurred while trying to instantiate the implementation class, must not be null.