class SomeoneElsesAPI {
void setDirectory(File dir){...}
void setDirectory(String dir){...}
}
<bean id="someoneElsesAPI" class="com.someone.SomeoneElsesAPI">
<property name="directory">
<value type="java.lang.String">/etc</value>
</property>
</bean>
I have a case similar to the above example, Spring is throwing an IllegalStateException indicating that it can't convert String to File.
How do I tell spring which of the overloaded methods to use? I thought spring would figure it out when I specified it in the <value type="...">
parameter.