Package org.glassfish.hk2.utilities
Interface ImmediateErrorHandler
-
@Contract public interface ImmediateErrorHandler
Implementations of this service will be called whenever an Immediate scoped service fails
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidpostConstructFailed(ActiveDescriptor<?> immediateService, java.lang.Throwable exception)This is called whenever an immediate service fails in its constructor or postConstruct method.voidpreDestroyFailed(ActiveDescriptor<?> immediateService, java.lang.Throwable exception)This is called whenever an immediate service fails in its preDestroy method.
-
-
-
Method Detail
-
postConstructFailed
void postConstructFailed(ActiveDescriptor<?> immediateService, java.lang.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, java.lang.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
-
-