Top Description Methods
org.glassfish.hk2.utilities

public Interface ImmediateErrorHandler

Annotations
@Contract
Imports
org.glassfish.hk2.api.ActiveDescriptor, org.jvnet.hk2.annotations.Contract

Implementations of this service will be called whenever an Immediate scoped service fails
Author
jwells

Method Summary

Modifier and TypeMethod and Description
public void
postConstructFailed(ActiveDescriptor<?>
The descriptor of the immediate scope service that failed
immediateService
,
Throwable
The exception that was thrown
exception
)

This is called whenever an immediate service fails in its constructor or postConstruct method.

public void
preDestroyFailed(ActiveDescriptor<?>
The descriptor of the immediate scope service that failed
immediateService
,
Throwable
The exception that was thrown
exception
)

This is called whenever an immediate service fails in its preDestroy method.

Method Detail

postConstructFailedback to summary
public 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:ActiveDescriptor<?>

The descriptor of the immediate scope service that failed

exception:Throwable

The exception that was thrown

preDestroyFailedback to summary
public 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:ActiveDescriptor<?>

The descriptor of the immediate scope service that failed

exception:Throwable

The exception that was thrown