ovidiu      02/03/13 19:50:20

  Modified:    src/scratchpad/schecoon/src/org/apache/cocoon/components/flow
                        InterpreterSelector.java
  Log:
  Removed debug statements.
  
  Revision  Changes    Path
  1.2       +14 -6     
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.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- InterpreterSelector.java  13 Mar 2002 18:59:19 -0000      1.1
  +++ InterpreterSelector.java  14 Mar 2002 03:50:20 -0000      1.2
  @@ -1,28 +1,31 @@
   package org.apache.cocoon.components.flow;
   
   import org.apache.avalon.excalibur.component.ExcaliburComponentSelector;
  +import org.apache.avalon.framework.component.ComponentManager;
  +import org.apache.avalon.framework.component.Composable;
   import org.apache.avalon.framework.configuration.Configurable;
   import org.apache.avalon.framework.configuration.Configuration;
   import org.apache.avalon.framework.configuration.ConfigurationException;
  +import org.apache.avalon.framework.parameters.ParameterException;
  +import org.apache.avalon.framework.parameters.Parameterizable;
  +import org.apache.avalon.framework.parameters.Parameters;
  +import org.apache.avalon.framework.thread.ThreadSafe;
   
   public class InterpreterSelector extends ExcaliburComponentSelector
  -  implements Configurable
  +  implements Configurable, ThreadSafe, Composable
   {
  +  ComponentManager manager;
  +  
     ClassLoader loader = Thread.currentThread().getContextClassLoader();
   
     public void configure(Configuration config)
       throws ConfigurationException
     {
  -    System.out.println("InterpreterSelector = " + this);
  -    
       Configuration[] components = config.getChildren("component-instance");
       for (int i = 0; i < components.length; i++) {
         Configuration component = components[i];
         String name = component.getAttribute("name");
         String className = component.getAttribute("class");
  -      System.out.println("Adding component with name " + name
  -                         + ", class = " + className);
  -
         Class clazz;
         try {
           clazz = loader.loadClass(className);
  @@ -32,5 +35,10 @@
           throw new ConfigurationException("Cannot load class " + className);
         }
       }
  +  }
  +
  +  public void compose(ComponentManager manager)
  +  {
  +    this.manager = manager;
     }
   }
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     [EMAIL PROTECTED]
To unsubscribe, e-mail:          [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to