Package org.glassfish.hk2.utilities
Interface ImmediateErrorHandler
Implementations of this service will be called whenever
an Immediate scoped service fails
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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 Details
-
postConstructFailed
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
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
-