MCPcopy Create free account
hub / github.com/banq/jdonframework / load

Method load

src/main/java/com/jdon/controller/config/XmlParser.java:47–65  ·  view source on GitHub ↗
(String configFileName)

Source from the content-addressed store, hash-verified

45 protected final FileLocator fileLocator = new FileLocator();
46
47 public Map load(String configFileName) {
48 Map<String, TargetMetaDef> mps = new LinkedHashMap<String, TargetMetaDef>();
49 try {
50 if (UtilValidate.isEmpty(configFileName))
51 return mps;
52
53 Document doc = buildDocument(configFileName);
54 if (doc == null)
55 return mps;
56
57 Element root = doc.getRootElement();
58 parse(root, mps);
59
60 Debug.logVerbose("[JdonFramework]<!-- config load finished -->", module);
61 } catch (Exception ex) {
62 Debug.logError("[JdonFramework]configure FileName: " + configFileName + " parsed error: " + ex, module);
63 }
64 return mps;
65 }
66
67 protected Document buildDocument(String configFileName) {
68 Debug.logVerbose("[JdonFramework] locate configure file :" + configFileName, module);

Callers 6

loadAspectComponentsMethod · 0.95
testLoadMethod · 0.45
loadBasicComponentsMethod · 0.45
loadXMLMethod · 0.45
ModalFunction · 0.45
bFunction · 0.45

Calls 5

isEmptyMethod · 0.95
buildDocumentMethod · 0.95
parseMethod · 0.95
logVerboseMethod · 0.95
logErrorMethod · 0.95

Tested by 1

testLoadMethod · 0.36