ovidiu 02/01/09 21:20:30
Modified: src/scratchpad/schecoon/src/org/apache/cocoon/scheme/sitemap
SitemapComponents.java
Log:
Generate only the stream pipeline; when doing so, also create and set
the events pipeline as well.
Revision Changes Path
1.3 +11 -11
xml-cocoon2/src/scratchpad/schecoon/src/org/apache/cocoon/scheme/sitemap/SitemapComponents.java
Index: SitemapComponents.java
===================================================================
RCS file:
/home/cvs/xml-cocoon2/src/scratchpad/schecoon/src/org/apache/cocoon/scheme/sitemap/SitemapComponents.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- SitemapComponents.java 8 Jan 2002 23:21:00 -0000 1.2
+++ SitemapComponents.java 10 Jan 2002 05:20:30 -0000 1.3
@@ -94,26 +94,26 @@
System.out.println("done");
}
- public EventPipeline getEventPipeline()
- throws ComponentException
- {
- EventPipeline pipeline = (EventPipeline)manager.lookup(EventPipeline.ROLE);
- pipeline.recompose(manager);
- return pipeline;
- }
-
public StreamPipeline getStreamPipeline()
- throws ComponentException
+ throws Exception
{
+ EventPipeline eventPipeline
+ = (EventPipeline)manager.lookup(EventPipeline.ROLE);
+ eventPipeline.recompose(manager);
+
StreamPipeline pipeline
= (StreamPipeline)manager.lookup(StreamPipeline.ROLE);
+ pipeline.setEventPipeline(eventPipeline);
pipeline.recompose(manager);
+
return pipeline;
}
- public void releasePipeline(Component pipeline)
+ public void releasePipeline(StreamPipeline pipeline)
{
- manager.release(pipeline);
+ EventPipeline eventPipeline = pipeline.getEventPipeline();
+ manager.release((Component)eventPipeline);
+ manager.release((Component)pipeline);
}
public String getDefaultGeneratorType()
----------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]