|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.opensymphony.xwork2.util.fs.DefaultFileManager
public class DefaultFileManager
Default implementation of FileManager
| Field Summary | |
|---|---|
protected boolean |
reloadingConfigs
|
| Constructor Summary | |
|---|---|
DefaultFileManager()
|
|
| Method Summary | |
|---|---|
boolean |
fileNeedsReloading(String fileName)
Checks if given file changed and must be reloaded if FileManager.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 FileManager.isReloadingConfigs() is true |
void |
setReloadingConfigs(boolean reloadingConfigs)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean reloadingConfigs
| Constructor Detail |
|---|
public DefaultFileManager()
| Method Detail |
|---|
public void setReloadingConfigs(boolean reloadingConfigs)
setReloadingConfigs in interface FileManagerpublic boolean isReloadingConfigs()
isReloadingConfigs in interface FileManagerpublic boolean fileNeedsReloading(URL fileUrl)
FileManager
fileNeedsReloading in interface FileManagerfileUrl - url to a file
public boolean fileNeedsReloading(String fileName)
FileManagerFileManager.isReloadingConfigs() is true
fileNeedsReloading in interface FileManagerfileName - to check
public InputStream loadFile(URL fileUrl)
FileManager
loadFile in interface FileManagerfileUrl - - the URL of the file to open
public void monitorFile(URL fileUrl)
FileManagerFileManager.isReloadingConfigs() is true
monitorFile in interface FileManagerfileUrl - URL to file to be monitored
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||