Hi, that's exactly what I was wondering, too
> > Hi,
> >
> > I just wanted to make a SingleThreaded component poolable. Is this
> > not allowed?
>
> They are not allowed. Currently SingleThreaded marks interfaces that
> cannot be reused, and must be used in one thread at a time. Therefore,
> they are manufactured by the Factory method.
But why?! I have a component that is not ThreadSafe (and therefor I would
like to declare it SingleThreaded. But it since it is just a helper component
and there is no need to create new instances all the time I'd like to
make it Rececylable (extends Poolable)
What is wrong with this approach?
> Poolable components (inherently only run in one thread at a time) can
So Poolable should extend SingleThreaded ?!
> be reused, therefore when one thread is done with it, it is returned
> to the pool.
--
Torsten
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]