cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vgritse...@apache.org
Subject cvs commit: xml-cocoon2/src/java/org/apache/cocoon/components/url URLFactoryImpl.java
Date Fri, 31 May 2002 14:22:38 GMT
vgritsenko    2002/05/31 07:22:38

  Modified:    src/java/org/apache/cocoon/components/url Tag:
                        cocoon_2_0_3_branch URLFactoryImpl.java
  Log:
  Fix bug #8639: Respect Parameterizable interface on URLFactories
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.5.2.1   +8 -3      xml-cocoon2/src/java/org/apache/cocoon/components/url/URLFactoryImpl.java
  
  Index: URLFactoryImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/url/URLFactoryImpl.java,v
  retrieving revision 1.5
  retrieving revision 1.5.2.1
  diff -u -r1.5 -r1.5.2.1
  --- URLFactoryImpl.java	22 Feb 2002 07:00:14 -0000	1.5
  +++ URLFactoryImpl.java	31 May 2002 14:22:38 -0000	1.5.2.1
  @@ -63,6 +63,9 @@
   import org.apache.avalon.framework.context.Contextualizable;
   import org.apache.avalon.framework.logger.AbstractLoggable;
   import org.apache.avalon.framework.logger.Loggable;
  +import org.apache.avalon.framework.parameters.Parameterizable;
  +import org.apache.avalon.framework.parameters.Parameters;
  +import org.apache.avalon.framework.parameters.ParameterException;
   import org.apache.avalon.framework.thread.ThreadSafe;
   import org.apache.cocoon.Constants;
   import org.apache.cocoon.util.ClassUtils;
  @@ -77,7 +80,7 @@
   
   /**
    * @author <a href="mailto:giacomo@apache.org">Giacomo Pati</a>
  - * @version $Id: URLFactoryImpl.java,v 1.5 2002/02/22 07:00:14 cziegeler Exp $
  + * @version $Id: URLFactoryImpl.java,v 1.5.2.1 2002/05/31 14:22:38 vgritsenko Exp $
    */
   public class URLFactoryImpl
   extends AbstractLoggable
  @@ -223,7 +226,7 @@
        * Init a url factory
        */
       private void init(URLFactory factory, Configuration config)
  -    throws ContextException, ComponentException, ConfigurationException {
  +    throws ContextException, ComponentException, ConfigurationException, ParameterException
{
           if (factory instanceof Loggable) {
               ((Loggable) factory).setLogger(getLogger());
           }
  @@ -236,6 +239,9 @@
           if (config != null && factory instanceof Configurable) {
               ((Configurable) factory).configure(config);
           }
  +        if (config != null && factory instanceof Parameterizable) {
  +            ((Parameterizable) factory).parameterize(Parameters.fromConfiguration(config));
  +        }
       }
   
       /**
  @@ -246,5 +252,4 @@
               ((Disposable) factory).dispose();
           }
       }
  -
   }
  
  
  

----------------------------------------------------------------------
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