Jimisola Laursen wrote:

1. iterate over ServletConfig.getInitParameterNames
2. foreach init param name check if there is a corresponding setter method
(setter can only have one argument)
3. convert init param value to the data type that the setters argument has

Exactly.


In step 3) what data types should be supported? byte, short, int, long,
float, double and String?

Should simply reuse code from the ReflectionUtils. (Don't remember the class name right now, but there is existing functionality, which is used by the AbstractReflectiveXmlRpcHandlerMapping.


What exception should be thrown (ServletException?) if no matching method
can be found in step 2) or data type conversion fails in step 3)?

A ServletException mapping the actual exception (for example IllegalArgumentException).



I can provide patches for the above when we have an agreement on the
solution and if you can a) guarantee that you will accept patches and b)
create a new snapshot for the Maven repo.

I never agree to anything like a). :-) I am open, as you very well know.

As for b): Who is running the nightly builds on the Maven snapshot repository, do you think?


Jochen


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

Reply via email to