cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tcu...@apache.org
Subject cvs commit: xml-cocoon2/src/java/org/apache/cocoon/servlet CocoonServlet.java
Date Wed, 20 Feb 2002 10:38:46 GMT
tcurdt      02/02/20 02:38:46

  Modified:    src/java/org/apache/cocoon/servlet CocoonServlet.java
  Log:
  Patch/Bug 6334: Adding context support to parent-component-managers
  Submitted by: crafterm@fztig938.bank.dresdner.net (Marcus Crafter)
  
  Revision  Changes    Path
  1.10      +5 -1      xml-cocoon2/src/java/org/apache/cocoon/servlet/CocoonServlet.java
  
  Index: CocoonServlet.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/servlet/CocoonServlet.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- CocoonServlet.java	13 Feb 2002 09:35:35 -0000	1.9
  +++ CocoonServlet.java	20 Feb 2002 10:38:46 -0000	1.10
  @@ -61,6 +61,7 @@
   import org.apache.avalon.framework.configuration.Configuration;
   import org.apache.avalon.framework.configuration.DefaultConfigurationBuilder;
   import org.apache.avalon.framework.context.DefaultContext;
  +import org.apache.avalon.framework.context.Contextualizable;
   import org.apache.avalon.framework.logger.Loggable;
   import org.apache.cocoon.Constants;
   import org.apache.cocoon.components.notification.Notifying;
  @@ -119,7 +120,7 @@
    * @author <a href="mailto:bloritsch@apache.org">Berin Loritsch</a>
    * @author <a href="mailto:cziegeler@apache.org">Carsten Ziegeler</a>
    * @author <a href="mailto:leo.sutic@inspireinfrastructure.com">Leo Sutic</a>
  - * @version CVS $Id: CocoonServlet.java,v 1.9 2002/02/13 09:35:35 froehlich Exp $
  + * @version CVS $Id: CocoonServlet.java,v 1.10 2002/02/20 10:38:46 tcurdt Exp $
    */
   public class CocoonServlet extends HttpServlet {
   
  @@ -1111,6 +1112,9 @@
   
                   if (parentComponentManager instanceof Loggable) {
                       ((Loggable) parentComponentManager).setLogger(log);
  +                }
  +                if (parentComponentManager instanceof Contextualizable) {
  +                    ((Contextualizable) parentComponentManager).contextualize(this.appContext);
                   }
                   if (parentComponentManager instanceof Initializable) {
                       ((Initializable) parentComponentManager).initialize();
  
  
  

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