Interface ErrorService

All Known Implementing Classes:
ErrorServiceImpl, ImmediateHelper, RethrowErrorService

@Contract public interface ErrorService
This interface should be implemented by those who wish to be notified of error conditions that occur within HK2. These errors are those that might happen during normal processing of HK2 requests

An implementation of ErrorService must be in the Singleton scope. Implementations of ErrorService will be instantiated as soon as they are added to HK2 in order to avoid deadlocks and circular references. Therefore it is recommended that implementations of ErrorService make liberal use of Provider or IterableProvider when injecting dependent services so that these services are not instantiated when the ErrorService is created

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onFailure(ErrorInformation errorInformation)
    This method is called when a failure occurs in the system.