You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by apurva zaveri <az...@yahoo.com> on 2002/08/21 21:16:02 UTC
Generator implements threadsafe???
does it makes sense implementing ThreadSafe to a
custom generator ???
for example like this:
public class MyGenerator
extends CompeserGenerator
implements ThreadSafe
{
....
}
__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: Generator implements threadsafe???
Posted by Vadim Gritsenko <va...@verizon.net>.
apurva zaveri wrote:
>does it makes sense implementing ThreadSafe to a
>custom generator ???
>
>for example like this:
>
>public class MyGenerator
>extends CompeserGenerator
>
If you mean ComposerGenerator, it extends AbstractGenerator, which
extends AbstractXMLProducer, which implements *Recyclable*, which is
*not* compatible with ThreadSafe.
So, the answer is: No.
Vadim
>implements ThreadSafe
>{
>....
>}
>
>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: Generator implements threadsafe???
Posted by Stephan Michels <st...@apache.org>.
On Wed, 21 Aug 2002, apurva zaveri wrote:
> does it makes sense implementing ThreadSafe to a
> custom generator ???
>
> for example like this:
>
> public class MyGenerator
> extends CompeserGenerator
> implements ThreadSafe
> {
> ....
> }
No, because a Generator implements
void setConsumer(XMLConsumer consumer);
and most of the Generators depends on the
parameters of the setup method.
Stephan.
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>