|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LoadErrorHandler
Interface for error handling strategies in service class loading. You can implement this interface for a custom error handling mechanism, or use one of the predefined strategies.
Field Summary | |
---|---|
static LoadErrorHandler |
IGNORE
Strategy that simply ignores all problems. |
static LoadErrorHandler |
THROW
Strategy that throws a RuntimeException with the given
throwable as the root cause, thus interrupting the entire service
loading operation. |
static LoadErrorHandler |
WARN
Strategy that logs warnings of all problems using a Logger
created using the given class name. |
Method Summary | |
---|---|
void |
handleLoadError(String classname,
Throwable throwable)
Handles a problem encountered when trying to load the specified service class. |
Field Detail |
---|
static final LoadErrorHandler IGNORE
static final LoadErrorHandler WARN
Logger
created using the given class name.
static final LoadErrorHandler THROW
RuntimeException
with the given
throwable as the root cause, thus interrupting the entire service
loading operation.
Method Detail |
---|
void handleLoadError(String classname, Throwable throwable)
classname
- name of the service classthrowable
- the encountered problem
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |