this.srcFile = srcFile;
_init();
}
+ public Component(String url, String name) {
+ super();
+ this.componentUrl = url;
+ this.componentName = name;
+ }
private void _init() {
File f = new File(new File(srcFile),"component-definition-properties.xml");
if(f.exists()) {
try {
-// Properties props = new Properties();
-// props.loadFromXML(new FileInputStream(f));
-// componentName = props.getProperty("component.name");
-// componentUrl = props.getProperty("component.url");
XdmNode node = docBuilder.build(f);
XPathCompiler xpc = processor.newXPathCompiler();
XPathSelector xps = xpc.compile("/component/name/text()").load();