[prev in list] [next in list] [prev in thread] [next in thread]
List: xmlbeans-dev
Subject: Re: Why factories don't implements any common Factory interface?
From: Robin Sander <robin.sander () gmx ! net>
Date: 2005-07-19 10:48:08
Message-ID: 42DCDA68.3020306 () gmx ! net
[Download RAW message or body]
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: dev-unsubscribe@xmlbeans.apache.org
> For additional commands, e-mail: dev-help@xmlbeans.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic