ovidiu      02/03/21 15:10:55

  Modified:    src/scratchpad/schecoon/src/org/apache/cocoon/components/flow
                        AbstractInterpreter.java
  Log:
  (compose): obtain the ContinuationsManager component.
  
  Revision  Changes    Path
  1.4       +9 -0      
xml-cocoon2/src/scratchpad/schecoon/src/org/apache/cocoon/components/flow/AbstractInterpreter.java
  
  Index: AbstractInterpreter.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/scratchpad/schecoon/src/org/apache/cocoon/components/flow/AbstractInterpreter.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- AbstractInterpreter.java  19 Mar 2002 09:25:55 -0000      1.3
  +++ AbstractInterpreter.java  21 Mar 2002 23:10:55 -0000      1.4
  @@ -5,6 +5,7 @@
   import java.util.HashMap;
   import java.util.Iterator;
   import org.apache.avalon.framework.component.Component;
  +import org.apache.avalon.framework.component.ComponentException;
   import org.apache.avalon.framework.component.ComponentManager;
   import org.apache.avalon.framework.component.Composable;
   import org.apache.avalon.framework.context.ContextException;
  @@ -48,6 +49,7 @@
   
     protected org.apache.cocoon.environment.Context context;
     protected ComponentManager manager;
  +  protected ContinuationsManager continuationsMgr;
   
     /**
      * Whether reloading of scripts should be done. Specified through
  @@ -64,8 +66,14 @@
     CategoryNode resources;
   
     public void compose(ComponentManager manager)
  +    throws ComponentException
     {
       this.manager = manager;
  +//     System.out.println("AbstractInterpreter: ComponentManager = " + manager);
  +    // FIXME: Why is the manager null here?
  +    if (manager != null)
  +      continuationsMgr
  +        = (ContinuationsManager)manager.lookup(ContinuationsManager.ROLE);
     }
   
     public void contextualize(org.apache.avalon.framework.context.Context context)
  @@ -118,6 +126,7 @@
      * @see org.apache.cocoon.components.source.DelayedRefreshSourceWrapper
      */
     public void register(String source)
  +    throws Exception
     {
       synchronized(this) {
         needResolve.add(source);
  
  
  

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