Hello,

what should such a common factory contain?
Prior to Java 1.5 you can't have covariant return types, so you
couldn't even overwrite 'XmlObject newInstance()' with
'SpecialXmlObject newInstance()'.
And maybe you dont't know: you can always use XmlObject.Factory.parse(...) and then cast to the right object,
the special factories are just the type-safe version of
XmlObject.Factory

regards,

Robin.



Artur Opala wrote:
Hi,
Why factories don't implements any common Factory interface? Artur Opala


------------------------------------------------------------------------

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


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

Reply via email to