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(java.lang.String classname,
java.lang.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(java.lang.String classname, java.lang.Throwable throwable)
classname
- name of the service classthrowable
- the encountered problem"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"