📄 xmlconfigfinder.java
字号:
package com.exp.fcl.configs.finders;
import com.exp.fcl.configs.ConfigFinderSupport;
import com.exp.fcl.util.EXPUtil;
import com.exp.fcl.xml.EXPXMLNode;
/**
*
* <p>
* Title: jstrd 基础技术平台
* </p>
* <p>
* Description: jstrd 基础技术平台
* </p>
* <p>
* Copyright: Copyright (c) jstrd 2004-2008
* </p>
* <p>
* Company: jstrd
* </p>
*
* @author zhanghf
* @version 3.0.0.0
*/
public class XMLConfigFinder extends ConfigFinderSupport {
private EXPXMLNode attrNode;
private static final String finderName = EXPUtil.getUUID();
protected String[] listKeyNames() {
if (this.attrNode != null) {
EXPXMLNode list = this.attrNode.getChildNode("list");
if (list != null) {
int count = list.getChildNodesCount();
String[] names = new String[count];
for (int i = 0; i < count; i++) {
names[i] = list.getChildNode(i).getNodeValue();
}
return names;
}
}
return new String[] {};
}
public void setAttributes(Object attrs) {
attrNode = (EXPXMLNode) attrs;
}
/**
* 得到当前loader对应的配置文件列表
*
* @return
*/
public String[] getConfigFiles() {
return this.listKeyNames();
}
protected String getConfigFileName() {
return null;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -