Thanks, I've read the reference guide, but was wondering whether I've missed something:
From the perspective of design/readability/validation, I expected an option to declare the type of a component, even when retrieved through a factory. Something like (assuming my bean is of type Comparator) :
Code:
Dummy code warning: "bean-type" is not a real spring tag
<bean ... factory-method="create" bean-type="java.util.Comparator"/>
Is it not supported by spring?
Admittedly it's not a "show stopper", but I wanted to make sure I'm not missing something. Thanks.