On 10-07-02 11:45, Willi Schönborn wrote:
>> @Inject
>> public void injectWebServiceProperties(
>> @Optional @Named("akui.webServiceURL") String webServiceUrl,
>> @Optional @Named("akui.webServiceUsername") String webServiceUsername,
>> @Optional @Named("akui.webServicePassword") String webServicePassword) {
>> ...
>> }
>>
> Honestly, using 3 setters would be sooo much cleaner and easier to read.
Really? I see no reason for this, unless you generally prefer using
setters to using constructors. The constructor argument list gets very
long mostly because of the Named annotations, this is not nice, but no
real problem.
--
You received this message because you are subscribed to the Google Groups
"google-guice" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-guice?hl=en.