Look at the tutorial examples for user methods. If the factory signature has a single parameter of type object it'll be passed the containing object when called. If it has a signature that takes an IUnmarshallingContext it'll be passed that instead (which allows access to the entire stack of objects - often useful, especially if the container for the instances created by the factory is a collection).

- Dennis


Guillaume Pothier wrote:


I think it would be great to extend the JiBX factory mechanism: instead of always calling a no-arguments factory method, there could be an option to pass data to the factory method. The parent object would be particularly useful.
Guillaume





------------------------------------------------------- This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek For a limited time only, get FREE Ground shipping on all orders of $35 or more. Hurry up and shop folks, this offer expires April 30th! http://www.thinkgeek.com/freeshipping/?cpg=12297 _______________________________________________ jibx-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to