ovidiu 02/04/09 17:36:46 Modified: src/scratchpad/schecoon/src/org/apache/cocoon/components/flow InterpreterSelector.java Log: Use elements when specifying configuration, instead of attributes. Revision Changes Path 1.8 +5 -3 xml-cocoon2/src/scratchpad/schecoon/src/org/apache/cocoon/components/flow/InterpreterSelector.java Index: InterpreterSelector.java =================================================================== RCS file: /home/cvs/xml-cocoon2/src/scratchpad/schecoon/src/org/apache/cocoon/components/flow/InterpreterSelector.java,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- InterpreterSelector.java 2 Apr 2002 05:00:42 -0000 1.7 +++ InterpreterSelector.java 10 Apr 2002 00:36:46 -0000 1.8 @@ -38,15 +38,17 @@ loggerUsed = logkit.getLogger(loggerName); } - Configuration[] components = config.getChildren("component-instance"); + Configuration[] components = config.getChildren("language"); if (components.length == 0) throw new ConfigurationException("No languages defined!"); for (int i = 0; i < components.length; i++) { Configuration component = components[i]; String name = component.getAttribute("name"); - String className = component.getAttribute("class"); - String loadOnStartup = component.getAttribute("load-on-startup", null); + String className = component.getChild("class").getValue(); + String loadOnStartup + = component.getChild("load-on-startup", true).getValue(null); + Class clazz; try { clazz = loader.loadClass(className);
---------------------------------------------------------------------- In case of troubles, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]