If the files don't exist or fail this is a backup source that should be on the classpath
If the files don't exist or fail this is a backup source that should be on the classpath
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 given the input stream
Load the resource given the input stream
Files to check (will choose the one with the newest timestamp)
Files to check (will choose the one with the newest timestamp)
Get the current version of the resource
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
Disable the auto update checks
Enable checking and automatic reload of the resource if the external file is updated
Enable checking and automatic reload of the resource if the external file is updated
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
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.
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)
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