Spring XML + BeanInfos

Why can’t Spring XML be used to set property javax.swing.cursor? <bean id=”foo” class=”javax.swing.JPanel”> <property name=”cursor”> <bean class=”com.adamish.foo.CursorFactory” factory-method=”createCursor” /> </property> </bean> The resultant exception: org.springframework.beans.NotWritablePropertyException: Invalid property ‘cursor’ of bean class [javax.swing.JPanel]: Bean property ‘cursor’ is not writable or has an invalid setter method. Does the parameter type of the setter match the return type… Continue reading Spring XML + BeanInfos