Hello,
I've a collection which I want to be of type ArrayList. However the Java
object in which I am putting this collection has a field such like that :
private Collection<MyClass> myCollection = new HashSet<MyClass>();
Here is my binding :
<collection name="MY_COLLECTION"
field="myCollection "
factory="my.package.FactoriesUtil.arrayListFactory">
<structure name="MY_CLASS"
type="my.package.MyClass" />
</collection>
It seems that the factory attributed is not used. JiBX seems to use the
existing instance instead of creating a new one with my factory. Of course I
can't change the myCollection declaration (not a class under my control).
How to force the factory to be used ?
Thanks,
Laurent
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users