Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 336247

Summary: Extension point for registering java object serialization through one EDataType
Product: z_Archived Reporter: Fabien Giquel <fabien.giquel>
Component: EMF-FacetAssignee: Nicolas Bros <nicolas.bros>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: emft.facet-inbox, nicolas.bros
Version: unspecifiedFlags: nicolas.bros: indigo+
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Fabien Giquel CLA 2011-02-03 10:42:51 EST
Here is a entry for a feature needed in MoDisco context, but which could be reusable in another context.

The need is to declare one EDataType which maps java.lang.Object, and for which the serialization (methods convert..ToString/..FromString), can be extended to some specific java types (default behavior in EFactoryImpl manages one predefined java types list).
Comment 1 Nicolas Bros CLA 2011-02-04 11:44:15 EST
Done in revision 282.
I added mainly:
- org.eclipse.emf.facet.util.emf.core.ISerializationRegistry
- /org.eclipse.emf.facet.util.emf.core/schema/serialization.exsd
- org.eclipse.emf.facet.util.emf.core.ISerializer<T>
- some default serializers in org.eclipse.emf.facet.util.emf.core.serialization
- unit tests in org.eclipse.emf.facet.infra.common.core.tests
Comment 2 Nicolas Bros CLA 2011-02-07 03:11:46 EST
The EDataType "ValueDataType" used in the org.eclipse.modisco.infra.discovery metamodel should be moved to org.eclipse.emf.facet.util.emf.core for maximum reusability.
Comment 3 Nicolas Bros CLA 2011-02-07 08:09:51 EST
(In reply to comment #2)
> The EDataType "ValueDataType" used in the org.eclipse.modisco.infra.discovery
> metamodel should be moved to org.eclipse.emf.facet.util.emf.core for maximum
> reusability.

Done in revision 283.
Comment 4 Nicolas Bros CLA 2011-03-04 06:01:03 EST
Committed revision 337 :
- marked org.eclipse.emf.facet.util.emf.core.serialization.model.serialization.impl as internal
- moved serialization interfaces to org.eclipse.emf.facet.util.emf.core.serialization
- moved default serializers to org.eclipse.emf.facet.util.emf.core.internal.serialization.serializers
Comment 5 Fabien Giquel CLA 2011-06-07 10:23:14 EDT
This bug has been resolved.