« Return to Thread: Pooled BuilderFactory

Re: Pooled BuilderFactory

by Stephane Decleire :: Rate this Message:

Reply to Author | View in Thread

Thanks James,

But is there a way to get 2 different objects ??

Stephane

James Carman a écrit :

> Two calls within the same thread will return the same instance.  
> Basically, the pooled model is a threaded model, but the instances
> returned are obtained from a pool rather than created from scratch
> every time they're bound to the thread.
>
>
>
> On 6/28/07, *Stephane Decleire* <sdecleire@...
> <mailto:sdecleire@...>> wrote:
>
>     Hi,
>
>     I don't understand why 2 calls to a BuilderFactory which model is
>     set to
>     pooled return the same object.
>     Isn't it the behavior of singletons ?
>
>     Thanks in advance for any explanation.
>
>     Stephane
>
>

 « Return to Thread: Pooled BuilderFactory