Hi Stefan,

Stefan Groschupf wrote:
> to realize singletons you have to use a plugin class implementation 
> that hosts all resources you want to share within your extension  objects.
> Extension objects are not singletons since they are many times used  in
> a multithreaded environment. So just move all our fields you would  have
> in a singleton to your custom plugin class implementation and  verify
> that you are able to handle multithreaded resources access and  you are
> done.

Ok, i'm currently learning by reading the source, so sorry for asking
dump questions ;)
I first looked into httpclient.Http and there is a singleton pattern for
HttpClient in it. So I thought it is a good idea to have extensions as
singletons and i didn't looked at the Plugin class (which is already
cached)...
But my next question now is: Why isn't there any class inheriting Plugin
(as far as i can see)? And why isn't there a custom Plugin for
httpclient.Http, which hosts access to HttpClient and
MultiThreadedHttpConnectionManager?


Thomas

Reply via email to