public interface LoadErrorHandler
Modifier and Type | Field and Description |
---|---|
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. |
Modifier and Type | Method and Description |
---|---|
void |
handleLoadError(String classname,
Throwable throwable)
Handles a problem encountered when trying to load the specified
service class.
|
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.void handleLoadError(String classname, Throwable throwable)
classname
- name of the service classthrowable
- the encountered problemCopyright © 2007–1969 The Apache Software Foundation. All rights reserved.