public interface FileProcessor extends Configuration, Ordered
DEFAULT_PRECEDENCE, HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Modifier and Type | Method and Description |
---|---|
void |
add(FileObject fileObject)
为文件处理器新增文件对象
|
void |
clean()
处理完成后执行
|
void |
delete(FileObject fileObject)
文件删除时的处理
|
boolean |
isMatch(FileObject fileObject)
该文件处理器是否可以处理该文件对象
|
void |
modify(FileObject fileObject)
文件修改后的处理
|
void |
noChange(FileObject fileObject)
文件内容没有变化的处理
|
void |
process()
对文件进行处理
|
void |
setFileResolver(FileResolver fileResolver)
设置文件搜索器
|
boolean |
supportRefresh()
是否支持刷新
|
config, getApplicationConfig, getApplicationNodePath, getComponentConfig, getComponentConfigPath
boolean isMatch(FileObject fileObject)
boolean supportRefresh()
void setFileResolver(FileResolver fileResolver)
fileResolver
- 文件搜索器void add(FileObject fileObject)
fileObject
- 文件对象void noChange(FileObject fileObject)
fileObject
- 文件对象void modify(FileObject fileObject)
fileObject
- 文件对象void delete(FileObject fileObject)
fileObject
- 文件对象void process()
void clean()
Copyright © 2006–2018 TinyGroup. All rights reserved.