Package org.glassfish.hk2.utilities
Interface ImmediateErrorHandler
-
@Contract public interface ImmediateErrorHandler
Implementations of this service will be called whenever an Immediate scoped service fails- Author:
- jwells
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
postConstructFailed(ActiveDescriptor<?> immediateService, Throwable exception)
This is called whenever an immediate service fails in its constructor or postConstruct method.void
preDestroyFailed(ActiveDescriptor<?> immediateService, Throwable exception)
This is called whenever an immediate service fails in its preDestroy method.
-
-
-
Method Detail
-
postConstructFailed
void postConstructFailed(ActiveDescriptor<?> immediateService, Throwable exception)
This is called whenever an immediate service fails in its constructor or postConstruct method. Any exceptions from the implementation of this method are ignored- Parameters:
immediateService
- The descriptor of the immediate scope service that failedexception
- The exception that was thrown
-
preDestroyFailed
void preDestroyFailed(ActiveDescriptor<?> immediateService, Throwable exception)
This is called whenever an immediate service fails in its preDestroy method. Any exceptions from the implementation of this method are ignored- Parameters:
immediateService
- The descriptor of the immediate scope service that failedexception
- The exception that was thrown
-
-