|
||||||||||
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 FileManager
public boolean isReloadingConfigs()
isReloadingConfigs
in interface FileManager
public boolean fileNeedsReloading(URL fileUrl)
FileManager
fileNeedsReloading
in interface FileManager
fileUrl
- url to a file
public boolean fileNeedsReloading(String fileName)
FileManager
FileManager.isReloadingConfigs()
is true
fileNeedsReloading
in interface FileManager
fileName
- to check
public InputStream loadFile(URL fileUrl)
FileManager
loadFile
in interface FileManager
fileUrl
- - the URL of the file to open
public void monitorFile(URL fileUrl)
FileManager
FileManager.isReloadingConfigs()
is true
monitorFile
in interface FileManager
fileUrl
- URL
to file to be monitored
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |