| Summary: | [metadata] Provide serialization API | ||
|---|---|---|---|
| Product: | [Eclipse Project] Equinox | Reporter: | Pascal Rapicault <pascal> |
| Component: | p2 | Assignee: | Pascal Rapicault <pascal> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | antonel.pazargic, dj.houghton, igor, jeffmcaffer, kim.moir, slewis |
| Version: | 3.7 | ||
| Target Milestone: | 3.7 M6 | ||
| Hardware: | PC | ||
| OS: | Mac OS X - Carbon (unsup.) | ||
| Whiteboard: | |||
|
Description
Pascal Rapicault
Would it be possible to also add API to serialize/deserialize List<IArtifact>? understood but we do need to take care of API contract issues. If they are written out then they have to be readable. Haven't we recreated the repository structure then? > understood but we do need to take care of API contract issues. If they are written out then they have to be readable. Haven't we recreated the repository structure then?
Please detail your concerns.
This API will write out a set of IUs and read them back. Nothing is to be specified about the format of the file. The only contract will be that we want the reader to be able to read back some old formats
The current implementation (not committed) uses the MetadataWriter class which generates something equivalent to the <units/> element found in a repo.
i see. So the serialized form will not be API. great. Thanks for the clarification. I have released two classes called IUSerializer and IUDeserializer in a package called org.eclipse.equinox.p2.metadata.io in the p2.metadata.repository bundle. Reopening, I missed the need to serialize IArtifactDescriptor... Given that it does not really make sense to just be able to store artifact descriptors by themselves, the only API that will be provided is for IUs. |