cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephen McConnell <mcconn...@apache.org>
Subject Re: SourceFactory lifecycles
Date Sat, 07 Sep 2002 11:00:51 GMT


Robert Leftwich wrote:

> I am implementing a source (for Prevayler) based on the 
> FileSource/URISource. I have implemented a SourceFactory that extends 
> AbstractLogEnabled and implements SourceFactory and Configurable. 
> Everything is working ok with the exception that configure() on the 
> SourceFactory appears to be called once per request. I was under the 
> impression (from the Avalon docs [1]) that configure() would only be 
> 'called once in the entire life of a Component:'. So, it appears my 
> understanding/expectation that the lifetime of a SourceFactory is 
> basically the same as for the Cocoon servlet/context (i.e. I expect to 
> see configure() called only once) is wrong.
> Can someone please enlighten me as to the actual lifecycle of a 
> SourceFactory as I want to do some one-off setup based on the 
> parameters passed to the configure() method? 


Hi Robert:

A couple of questions:

  1. which container are you using?
  2. is it really the case that the same instance is being configured 
twice (or is it two instance with one configuration invocation for each 
instance)

Cheers, Steve.

>
>
> Robert
>
> [1] 
> http://jakarta.apache.org/avalon/framework/reference-the-lifecycle.html
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>

-- 

Stephen J. McConnell

OSM SARL
digital products for a global economy
mailto:mcconnell@osm.net
http://www.osm.net




---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message