Martin Desruisseaux wrote:
> We would like to read and write metadata (for now) and CRS (later) objects in
> XML. We experimented the addition of JAXB annotations on two GeoTools metadata
> implementations with the help of XmlAdapters for mapping GeoAPI interfaces to
> GeoTools implementations, and it seems to work. My questions:
>
> 1) What peoples think about adding JAXB annotations to all ISO metadata
>    implementations on trunk?
>   
Hi Martin; I have experience using hibernate annotations to store the 
ISO metadata implementations (but not on trunk).
I would think that the jaxb implementations:
- should be their own plugin; and
- iso metadata interfaces should get a visit methods;
- allowing you to copy from any metadata interface into the 
implementation you need for jaxb

Basically keep it pure and use the factory system you set up to your 
advantage.
> 2) Are we allowed to add a dependency on metadata to JAXB-API 2.1?
>   
This conflicts with the 3 other ways we have of dealing with xml 
persistence.
> 3) We noticed that some other GeoTools modules (not sure which ones)
>    use JAXB 1.3. Can we upgrate to JAXB 2.1?
>   
I think that dependency was for the data/time conversion functions; I 
was hoping it was on the way out. It may also of been used for an early 
bean generator for the xml binding framework (I think justin has 
reverted to just xsd now but I am not sure).
> 4) If everyone is fine with that, can we get a commit right for
>    Cédric Briançon (he would do this work).
>   
Sure we can use him to try out the "sign before you play" policy.
Jody
> Metadata are relatively straightforward. If we succeed with them, the next 
> (more
> complex) step would be to do the same on CRS implementations.
>   
Sorry for the hesitation here Martin; I would like to make sure you chat 
with Justin and we don't have many xml
strategies on the go at once. As an example XStream is another good 
technology and compares well to jaxb.

Jody

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to