public abstract class AbstractShelter extends PropertyResources implements Sheltering
RoofOperating interface.
This
class extends CastingContainer to implement the
PropertySupplying interface and allow sub-classes to act as
error casters. It provides a
single-argument
constructor, with a Map object as the argument.
To make construction out of a properties file more convenient,
a static #createRoofOperator method is given.PropertyResources.Load, PropertyResources.URLResourceKEY_NOINITONCREATE, POSTFIX_ALPHABET, POSTFIX_BYTES, POSTFIX_DIR, POSTFIX_EXT, POSTFIX_FILE, POSTFIX_LIST, POSTFIX_MODTIME, POSTFIX_URLKEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORKEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOMECONFIG, KEY_CLASS| Modifier | Constructor and Description |
|---|---|
protected |
AbstractShelter(Map<String,String> prop)
Constructs a new weather watching instance with the specified
properties.
|
| Modifier and Type | Method and Description |
|---|---|
static Sheltering |
createShelter(Map<String,String> prop)
Constructs a new weather watching instance using the mapping of the
PropertySupplying.KEY_CLASS to the class name to derive the class to instantiate. |
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, waitclose, getLastCloseTime, getLastOpenTime, isClosed, isOpen, openconciseStatus, extendedStatusdefaultBoolean, 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, stringPropertiesprotected AbstractShelter(Map<String,String> prop)
PropertySupplying.KEY_CLASS is always mapped when this
constructer is used.public static final Sheltering createShelter(Map<String,String> prop)
PropertySupplying.KEY_CLASS to the class name to derive the class to instantiate.
If this property is defined, a new RoofOperating
instance with the stated
class name is created, the supplied properties used as an argument in
the constructor. Can throw a lot of exceptions if unsuccessful.