A backup backup resource that will be used if the files and backup cannot be loaded
A backup backup resource that will be used if the files and backup cannot be loaded
Load the resource from it's backup source (if any)
Load the resource from it's backup source (if any)
Load the resource from it's primary source
Load the resource from it's primary source
The Last Modified time of the resource (can be set to System.currentTimeMillis to always reload)
The Last Modified time of the resource (can be set to System.currentTimeMillis to always reload)
Get the current version of the resource
Clear the reference to the current version of the resource.
Clear the reference to the current version of the resource.
NOTE: Calling apply() after this will return null
Disable the auto update checks
Enable checking and automatic reload of the resource if the external file is updated
Directly load the resource and return the result.
Directly load the resource and return the result. Doesn't touch the current resource in this class.
Attempt to reload the current resource.
Attempt to reload the current resource. If there is a problem the existing version will be left in place
Returns true if the resource was successfully updated
TODO: This should probably return an Option[Long] which is the last modified time of the reloaded resource