"Simon Kitching" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
[snip]
> How about this??
>
> public class ChildCreationFactory implements ObjectCreationFactory {
>   public Object createObject(Attributes x) {
>     ParentClass parent = (ParentClass) digester.peek();
>     String childClassName = parent.getChildClassName();
>
>     // create instance of child class and return it
>   }
> }
>
> digester.addObjectCreate("parent", ParentClass.class);
> digester.addSetProperties("parent");
> digester.addFactoryCreate("parent/child", new ChildCreationFactory());
> digester.addSetNext("parent/child");
>
>
> That looks much better...[I hope]
>

I think that this will do what I was looking for. Now to implement it...

Thanks for the pointers!

> Regards,
>
> Simon


Cheers,
Rob




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to