cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ovi...@apache.org
Subject cvs commit: xml-cocoon2/src/scratchpad/schecoon/src/org/apache/cocoon/components/flow InterpreterSelector.java
Date Wed, 10 Apr 2002 00:36:46 GMT
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:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message