|
||||||||||
| 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 isReloadingConfigs() is true |
boolean |
fileNeedsReloading(URL fileUrl)
Checks if file represented by provided URL should be reloaded |
boolean |
isReloadingConfigs()
|
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 isReloadingConfigs() is true |
void |
setReloadingConfigs(boolean reloadingConfigs)
|
| Method Detail |
|---|
void setReloadingConfigs(boolean reloadingConfigs)
boolean isReloadingConfigs()
boolean fileNeedsReloading(String fileName)
isReloadingConfigs() 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)
isReloadingConfigs() is true
fileUrl - URL to file to be monitored
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||