Re: Generator implements threadsafe???

2002-08-22 Thread Stephan Michels


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. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Re: Generator implements threadsafe???

2002-08-21 Thread Vadim Gritsenko

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. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Generator implements threadsafe???

2002-08-21 Thread apurva zaveri

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. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>