|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectutil.PropertyContainer
stella.AbstractErrorFinalizer
public abstract class AbstractErrorFinalizer
An abstract implementation of the ErrorFinalizing interface. It
allows creation of an ErrorFinalizing instance out of a properties
object, provided the PropertyBearing.KEY_CLASS key is present.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class util.PropertyContainer |
|---|
PropertyContainer.URLResource |
| Field Summary | |
|---|---|
private Object |
monitor
The object to notify. |
| Fields inherited from class util.PropertyContainer |
|---|
KEY_LISTSEPARATOR, KEY_LOCALECOUNTRY, KEY_LOCALELANGUAGE, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATOR, KEY_NOINITONCREATE, KEY_RESOURCEBUNDLES |
| Fields inherited from interface util.PropertyBearing |
|---|
CONFIG, KEY_CLASS, KEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME |
| Constructor Summary | |
|---|---|
protected |
AbstractErrorFinalizer(Map sprop)
Protected constructer defining this error finalizer's properties. |
| Method Summary | |
|---|---|
static ErrorFinalizing |
createErrorFinalizer(Map prop)
Constructs a new error finalizer instance using the mapping of the PropertyBearing.KEY_CLASS to the class name to derive the class to instantiate. |
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface stella.ErrorFinalizing |
|---|
finalizeError, getFollowUp, isFinalizing |
| Methods inherited from interface util.PropertyBearing |
|---|
defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsObject, getAsObject, getLocalized, getProperties, getProperty, getResource, getResourceAsStream, getResources, has, parseObject, removeProperty, setObject, setProperty, stringProperties |
| Field Detail |
|---|
private Object monitor
| Constructor Detail |
|---|
protected AbstractErrorFinalizer(Map sprop)
| Method Detail |
|---|
public static final ErrorFinalizing createErrorFinalizer(Map prop)
PropertyBearing.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).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||