|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FileManager
Basic interface to access file on the File System and to monitor changes
| Method Summary | |
|---|---|
boolean |
fileNeedsReloading(String fileName)
Checks if given file changed and must be reloaded if setReloadingConfigs(boolean) is true |
boolean |
fileNeedsReloading(URL fileUrl)
Checks if file represented by provided URL should be reloaded |
Collection<? extends URL> |
getAllPhysicalUrls(URL url)
|
boolean |
internal()
User's implementation should return false as then it will be taken in first place |
InputStream |
loadFile(URL fileUrl)
Loads opens the named file and returns the InputStream |
void |
monitorFile(URL fileUrl)
Adds file to list of monitored files if setReloadingConfigs(boolean) is true |
URL |
normalizeToFileProtocol(URL url)
Convert URLs to URLs with "file" protocol |
void |
setReloadingConfigs(boolean reloadingConfigs)
Enables configs reloading when config file changed |
boolean |
support()
Indicate if given implementation supports current OS File System |
| Method Detail |
|---|
void setReloadingConfigs(boolean reloadingConfigs)
reloadingConfigs - XWorkConstants.RELOAD_XML_CONFIGURATIONboolean fileNeedsReloading(String fileName)
setReloadingConfigs(boolean) is true
fileName - to check
boolean fileNeedsReloading(URL fileUrl)
fileUrl - url to a file
InputStream loadFile(URL fileUrl)
fileUrl - - the URL of the file to open
IllegalArgumentException - if there is no file with the given file namevoid monitorFile(URL fileUrl)
setReloadingConfigs(boolean) is true
fileUrl - URL to file to be monitoredURL normalizeToFileProtocol(URL url)
url - URL to convert to a jar url
boolean support()
boolean internal()
Collection<? extends URL> getAllPhysicalUrls(URL url)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||