cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Upayavira" ...@upaya.co.uk>
Subject Extending the Bean
Date Thu, 14 Aug 2003 14:46:10 GMT
<?xml  version="1.0" ?><html>
<head>
<title></title>
</head>
<body>
<div align="left"><font face="Arial"><span style="font-size:10pt">In another
message I mentioned I've done a lot of reworking of the bean/CLI. I 
thought I'd mention what I've done so far, and what I have planned. Doesn't really 
qualify for [RT] status, as it doesn't seem all that random to me!</span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:10pt">As to
the reworking, I've:</span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:10pt"> * split
the bean into a CocoonWrapper that handles configuring a Cocoon object 
and handling a single request, and a CocoonBean which handles crawling</span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:10pt"> * Made
the CocoonBean use a Crawler class (derived from the one in the 
scratchpad Ant task) </span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:10pt"> * Moved
all of the URI logic (mangling URIs etc) into the Target class</span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:10pt"> * made
it report the time taken to generate a single page</span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:10pt">Next I
want to:</span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:10pt"> * moving
the member variables of the wrapper and bean into a Context object, so 
that the Bean can be used in a ThreadSafe environment.</span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:10pt"> * rework
the way the bean is configured (possibly using Configuration objects)</span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:10pt"> * improve
reporting so that it reports pages generated, time taken per page, the 
links found in a page, stack trace from errors, pages that contain broken links, and 
more.</span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:10pt"> * Make
this reporting use SAX (to a file), so that in future it can be the basis of a 
publishing service</span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:10pt"> * Get
caching working properly, and make it use ifModifiedSince() to determine 
whether to save the file or not.</span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:10pt"> * Build
a simple Ant task to replace Main.java for ant driven processes</span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:10pt"> * Make
Cocoon work with an external Cocoon object, again for the sake of a 
PublishingService</span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:10pt"> * replace
the contents of the cli.xconf file with correct settings for generating 
documentation from the built webapp, keeping the documentation system working</span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:10pt"> * implement
exclude/include, a la Ant in the cli.xconf </span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:10pt"> * make
it configurable as to which pages are scanned for links (why generate 
/docs/logo.gif?cocoon-view=links)?</span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:10pt"> * work
out how to implement Vadim's idea for a single pipeline with an 
XMLTeePipe to generate both a link view and page view in one hit</span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:10pt"> * improve
the cli.xconf format to be more flexible, e.g: generate multiple pages to 
a single destination, and to have links followed on some pages but not others, etc</span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:10pt">Phew.
More than I thought! And there's more I haven't mentioned...</span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:10pt">Regards,
Upayavira</span></font></div>
<div align="left"></div>
</body>
</html>

Mime
View raw message