- priority: 5 --> 1
From Alex Volanis:
I think the ReflectionInfo class should also look for
methods of the form addPropertyName(ObjectType arg) and
addPropertyName(int index, ObjectType arg). These are
common in cases of collection properties that are
managed as arrays. Castor objects are full of these and
to work with them I had to enable the Castor extra
collection methods that give access to the underlying
collection by reference. The reason I had to do this
was that arrays (which is what I get otherwise) do not
have a GrowableContainerReflector and cannot have
elements added if they are not already sized to the
necessary dimensions. If the ReflectionInfo can detect
the presense of addPropertyName methods we can handle
arrays as if they have a GrowableContainerReflector. In
addition to getting the arrays to grow as needed it
provides type checking that I lost when I had to use
the Castor collection references.