| com.anthonyeden.lib.resource.ResourceLoader
All known Subclasses: com.anthonyeden.lib.resource.AbstractResourceLoader,
ResourceLoader | public interface ResourceLoader (Code) | | Generic interface for loading resources. Each form of the loadResource()
method accepts a ResourceRecipient which is a callback implemented by
classe which will use the resource's data. When the resource is loaded the
ResourceRecipient's load() method is called. This allows resources to be
monitored and reloaded on a scheduled basis without having to call the
ResourceLoader every time. See the FileResourceLoader
implementation for an example.
author: Anthony Eden |
loadResource | public void loadResource(String path, ResourceRecipient handler, boolean monitor) throws ResourceException(Code) | | Load the resource specified by the given path. If monitor is true then
the ResourceLoader implementation will monitor the resource and call the
ResourceRecipient each time the resource is modified.
Parameters: path - The path Parameters: handler - The ResourceRecipient callback Parameters: monitor - True to monitor the resource throws: ResourceException - |
|
|