[ 
https://issues.apache.org/jira/browse/HTTPCORE-37?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12469186
 ] 

Oleg Kalnichevski commented on HTTPCORE-37:
-------------------------------------------

Stojce,

This one was not going to be easy. There is no way around having some kind of 
parameter type discovery mechanism. (1) You might want to consider maintaining 
a parameter registry (basically a map of Class references keyed by parameter 
name). This one would be easy but not very flexible, but easy enough (2) 
Alternatively you may want to consider using reflection to infer parameter 
types from Http<Whatever>Param classes such as HttpConnectionParams. (3) Just 
simply require a parameter type to be declared in the Spring application 
context. 

Oleg

> Spring integration for HttpParams
> ---------------------------------
>
>                 Key: HTTPCORE-37
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-37
>             Project: HttpComponents Core
>          Issue Type: Improvement
>          Components: HttpCore Spring
>         Environment: Spring 2.0
>            Reporter: Stojce Dimski
>             Fix For: 4.0-alpha4
>
>         Attachments: springHttpParams.zip
>
>
> I quickly prototyped a simple spring integration trough HttpParamsFactoryBean 
> which load parameters from external .properties file and decodes them into 
> HttpParams.
> Approach at solving this issue is pretty 'pragmatic' as would tell Roland, 
> but works like charm for me ;-)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to