restlet / restlet-framework-java

The first REST API framework for Java
https://restlet.talend.com
648 stars 284 forks source link

Instantiate default client component and application #608

Open thboileau opened 12 years ago

thboileau commented 12 years ago

In case of using several instances of ClientResource without explicitely setting a shared client connector or client dispatcher, several client connector are instantiated. In case of using the internal client connector this will lead to create several pool of threads. The idea is to let the Engine creates such default Component and Application that will offer their shared client connector.

Tembrel commented 12 years ago

So unless you say otherwise, you get the current application's client connector or, if there is no current application or the current application doesn't have a client connector set, the component's client connector?

thboileau commented 12 years ago

yes Tim, that's the idea.