|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.anthonyeden.lib.resource.AbstractResourceLoader
Abstract implementation of the ResourceLoader interface. Provides default implementations of some methods.
Field Summary | |
static int |
DEFAULT_DELAY
The default delay time in milliseconds (5 seconds). |
Constructor Summary | |
AbstractResourceLoader()
|
Method Summary | |
int |
getDelay()
Get the monitoring delay. |
protected java.util.List |
getMonitors()
Get a List of all registered monitors. |
void |
loadResource(java.lang.String path,
ResourceRecipient handler)
Load the resource specified by the given path. |
void |
setDelay(int delay)
Set the monitoring delay in milliseconds. |
void |
startMonitors()
Start all stopped ResourceMonitors. |
void |
stopMonitors()
Stop all running ResourceMonitors. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.anthonyeden.lib.resource.ResourceLoader |
loadResource |
Field Detail |
public static final int DEFAULT_DELAY
Constructor Detail |
public AbstractResourceLoader()
Method Detail |
public void loadResource(java.lang.String path, ResourceRecipient handler) throws ResourceException
path
- The pathhandler
- The ResourceReceipient callback
ResourceException
public int getDelay()
public void setDelay(int delay)
delay
- The delay in millisecondspublic void startMonitors()
public void stopMonitors()
protected java.util.List getMonitors()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |