hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject [http-common] HttpCommon in Spring
Date Thu, 09 Jun 2005 20:05:44 GMT
Folks,

I have created a Spring bean descriptor and a sample app to showcase how
a simple http agent can be assembled using a IoC/DI container

http://svn.apache.org/repos/asf/jakarta/httpclient/trunk/http-
common/src/contrib/org/apache/http/contrib/spring/http-beans.xml

http://svn.apache.org/repos/asf/jakarta/httpclient/trunk/http-
common/src/contrib/org/apache/http/contrib/spring/SpringHttpDemo.java

As you can see not a single impl class gets imported by the application.
Virtually any standard HTTP component can be replaced with a custom
simply by changing the bean descriptor without having to recompile the
application, let alone forking the API. 

You have got to love Spring!

Oleg


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org


Mime
View raw message