public abstract class AbstractErrorFinalizer extends PropertyResources implements ErrorFinalizing, Initializable
ErrorFinalizing interface. It
allows creation of an ErrorFinalizing instance out of a properties
object, provided the PropertySupplying.KEY_CLASS key is present.PropertyResources.Load, PropertyResources.URLResource| Modifier and Type | Field and Description |
|---|---|
private Object |
monitor
The object to notify.
|
KEY_NOINITONCREATE, POSTFIX_ALPHABET, POSTFIX_BYTES, POSTFIX_DIR, POSTFIX_EXT, POSTFIX_FILE, POSTFIX_LIST, POSTFIX_MODTIME, POSTFIX_URLKEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORCONFIG, KEY_CLASSKEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME| Modifier | Constructor and Description |
|---|---|
protected |
AbstractErrorFinalizer(Map<String,String> sprop)
Protected constructer defining this error finalizer's properties.
|
| Modifier and Type | Method and Description |
|---|---|
static ErrorFinalizing |
createErrorFinalizer(Map<String,String> prop)
Constructs a new error finalizer instance using the mapping of the
PropertySupplying.KEY_CLASS to the class name to derive the class to instantiate. |
void |
init() |
boolean |
isAborting()
Default implementation for aborting.
|
void |
setMonitor(Object sleeper)
Registers a sleeper object to the error handler.
|
protected void |
wake()
Notifies all waiting thread on the
monitor object. |
clone, createFrom, createFrom, createFrom, createInstance, getApplet, getAsResources, getLocate, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, hasLocalURLs, initProperties, keyCreate, keyCreate, reload, setAppletaugment, augment, augment, augment, augment, defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsEnums, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, isNew, parseObject, parseObject, reload, removeProperty, requires, rescanned, setObject, setProperties, setProperty, stringProperties, toStringequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfinalizeError, getFollowUp, isFinalizingdefaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, parseObject, removeProperty, setObject, setProperty, stringPropertiesprivate Object monitor
public void init()
init in interface Initializablepublic static final ErrorFinalizing createErrorFinalizer(Map<String,String> prop)
PropertySupplying.KEY_CLASS to the class name to derive the class to instantiate.
If this property is defined, a new error finalizing instance with the
stated class name is created, the supplied properties used as an
argument in the constructor. If the object generated also implements the
Initializable interface, its Initializable.init() method
is called right after construction. If unsuccessful, null is returned.public boolean isAborting()
isAborting in interface ErrorFinalizingpublic void setMonitor(Object sleeper)
wake() method.setMonitor in interface ErrorFinalizingprotected void wake()
monitor object. A monitor
must be registered with a call to setMonitor(java.lang.Object).