JyotsnaT / xuggle

Automatically exported from code.google.com/p/xuggle
0 stars 0 forks source link

Make IRational objects be more easily settable from Spring #194

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It can be nice to use IRational objects as settings in Spring files, but
currently the value of a IRational is not resettable after construction.

This makes for weird looking Spring config files:

      <bean class="com.xuggle.xuggler.IRational" factory-method="make">
        <constructor-arg index="0" value="15" />
        <constructor-arg index="1" value="1" />
      </bean>

It would be nicer for Spring if we could do:
      <bean class="com.xuggle.xuggler.IRational"
       factory-method="make">
        <property name="value" value="15.0"></property>
      </bean>

Which I'm going to implement, while still maintaining the concept of
immutable-ness when it matters.

Original issue reported on code.google.com by art.cla...@gmail.com on 18 Aug 2009 at 3:36

GoogleCodeExporter commented 9 years ago
Implemented in r879

Original comment by art.cla...@gmail.com on 18 Aug 2009 at 9:09