public class IndexInstallProcessor extends AbstractApplicationProcessor
DEFAULT_PRECEDENCE, HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Constructor and Description |
|---|
IndexInstallProcessor() |
| Modifier and Type | Method and Description |
|---|---|
void |
config(XmlNode applicationConfig,
XmlNode componentConfig)
设置配置信息,应用配置和组件配置内容合并
|
XmlNode |
getApplicationConfig()
获取应用配置信息
|
String |
getApplicationNodePath()
获取在application.xml中配置对象的相对路径
|
XmlNode |
getComponentConfig()
获取组件配置信息
|
String |
getComponentConfigPath()
返回该配置对象组件配置的相对路径,相对于classpath的路径。
|
List<IndexDataSource<XmlNode>> |
getDataSources() |
int |
getOrder()
Return the order value of this object, with a
higher value meaning greater in terms of sorting.
|
void |
setDataSources(List<IndexDataSource<XmlNode>> dataSources) |
void |
start()
应用程序处理器开启方法
|
void |
stop()
应用程序处理器关闭方法
|
getApplication, init, setApplicationpublic List<IndexDataSource<XmlNode>> getDataSources()
public void setDataSources(List<IndexDataSource<XmlNode>> dataSources)
public void start()
ApplicationProcessorpublic void stop()
ApplicationProcessorpublic void config(XmlNode applicationConfig, XmlNode componentConfig)
ConfigurationapplicationConfig - 应用配置节点componentConfig - 组件配置节点public XmlNode getApplicationConfig()
Configurationpublic String getApplicationNodePath()
Configurationpublic XmlNode getComponentConfig()
Configurationpublic String getComponentConfigPath()
Configurationpublic int getOrder()
OrderedNormally starting with 0 or 1, with Ordered.LOWEST_PRECEDENCE
indicating greatest. Same order values will result in arbitrary
positions for the affected objects.
Higher value can be interpreted as lower priority, consequently the first object has highest priority (somewhat analogous to Servlet "load-on-startup" values).
Note that order values below 0 are reserved for framework purposes. Application-specified values should always be 0 or greater, with only framework components (internal or third-party) supposed to use lower values.
Ordered.LOWEST_PRECEDENCECopyright © 2006–2018 TinyGroup. All rights reserved.