public abstract class AbstractFileProcessor extends Object implements FileProcessor
| Modifier and Type | Field and Description |
|---|---|
protected org.tinygroup.xmlparser.node.XmlNode |
applicationConfig |
protected Map<String,Object> |
caches |
protected List<org.tinygroup.vfs.FileObject> |
changeList |
protected org.tinygroup.xmlparser.node.XmlNode |
componentConfig |
protected List<org.tinygroup.vfs.FileObject> |
deleteList |
protected List<org.tinygroup.vfs.FileObject> |
fileObjects |
protected FileResolver |
fileResolver |
protected static org.tinygroup.logger.Logger |
LOGGER |
| Constructor and Description |
|---|
AbstractFileProcessor() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(org.tinygroup.vfs.FileObject fileObject)
为文件处理器新增文件对象
|
protected abstract boolean |
checkMatch(org.tinygroup.vfs.FileObject fileObject) |
void |
clean()
处理完成后执行
|
void |
config(org.tinygroup.xmlparser.node.XmlNode applicationConfig,
org.tinygroup.xmlparser.node.XmlNode componentConfig) |
protected <T> T |
convertFromXml(com.thoughtworks.xstream.XStream stream,
org.tinygroup.vfs.FileObject fileObject)
转换XML为Xstream对象
|
void |
delete(org.tinygroup.vfs.FileObject fileObject)
文件删除时的处理
|
org.tinygroup.xmlparser.node.XmlNode |
getApplicationConfig() |
String |
getApplicationNodePath() |
org.tinygroup.xmlparser.node.XmlNode |
getComponentConfig() |
String |
getComponentConfigPath() |
FileResolver |
getFileResolver() |
int |
getOrder() |
boolean |
isMatch(org.tinygroup.vfs.FileObject fileObject)
该文件处理器是否可以处理该文件对象
|
void |
modify(org.tinygroup.vfs.FileObject fileObject)
文件修改后的处理
|
void |
noChange(org.tinygroup.vfs.FileObject fileObject)
文件内容没有变化的处理
|
void |
setFileResolver(FileResolver fileResolver)
设置文件搜索器
|
boolean |
supportRefresh()
是否支持刷新
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprocessprotected static final org.tinygroup.logger.Logger LOGGER
protected List<org.tinygroup.vfs.FileObject> fileObjects
protected List<org.tinygroup.vfs.FileObject> changeList
protected List<org.tinygroup.vfs.FileObject> deleteList
protected FileResolver fileResolver
protected org.tinygroup.xmlparser.node.XmlNode applicationConfig
protected org.tinygroup.xmlparser.node.XmlNode componentConfig
public boolean isMatch(org.tinygroup.vfs.FileObject fileObject)
FileProcessorisMatch in interface FileProcessorprotected abstract boolean checkMatch(org.tinygroup.vfs.FileObject fileObject)
public FileResolver getFileResolver()
public void setFileResolver(FileResolver fileResolver)
FileProcessorsetFileResolver in interface FileProcessorfileResolver - 文件搜索器public void add(org.tinygroup.vfs.FileObject fileObject)
FileProcessoradd in interface FileProcessorfileObject - 文件对象public void noChange(org.tinygroup.vfs.FileObject fileObject)
FileProcessornoChange in interface FileProcessorfileObject - 文件对象public void modify(org.tinygroup.vfs.FileObject fileObject)
FileProcessormodify in interface FileProcessorfileObject - 文件对象public void delete(org.tinygroup.vfs.FileObject fileObject)
FileProcessordelete in interface FileProcessorfileObject - 文件对象public void clean()
FileProcessorclean in interface FileProcessorpublic boolean supportRefresh()
FileProcessorsupportRefresh in interface FileProcessorpublic String getApplicationNodePath()
getApplicationNodePath in interface org.tinygroup.config.Configurationpublic String getComponentConfigPath()
getComponentConfigPath in interface org.tinygroup.config.Configurationpublic void config(org.tinygroup.xmlparser.node.XmlNode applicationConfig,
org.tinygroup.xmlparser.node.XmlNode componentConfig)
config in interface org.tinygroup.config.Configurationpublic org.tinygroup.xmlparser.node.XmlNode getComponentConfig()
getComponentConfig in interface org.tinygroup.config.Configurationpublic org.tinygroup.xmlparser.node.XmlNode getApplicationConfig()
getApplicationConfig in interface org.tinygroup.config.Configurationpublic int getOrder()
getOrder in interface org.tinygroup.commons.order.Orderedprotected <T> T convertFromXml(com.thoughtworks.xstream.XStream stream,
org.tinygroup.vfs.FileObject fileObject)
T - stream - fileObject - Copyright © 2006–2017 TinyGroup. All rights reserved.