Jump to: navigation, search

Difference between revisions of "EclipseLink/Examples/MOXy/Dynamic"

(Overview)
(Overview)
(5 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
EclipseLink Dynamic MOXy introduces a new concept in JAXB development - the freedom to bootstrap a JAXBContext from a variety of metadata sources and use familiar JAXB APIs to marshal and unmarshal data, all without having actual compiled domain classes. This enables the metadata to be updated without worrying about updating and recompiling the previously-generated Java source code.
 
EclipseLink Dynamic MOXy introduces a new concept in JAXB development - the freedom to bootstrap a JAXBContext from a variety of metadata sources and use familiar JAXB APIs to marshal and unmarshal data, all without having actual compiled domain classes. This enables the metadata to be updated without worrying about updating and recompiling the previously-generated Java source code.
  
 +
Instead of actual Java classes (e.g. <tt>Customer.class</tt>, <tt>Address.class</tt>, etc), the domain objects used in Dynamic MOXy will be subclasses of <tt>DynamicEntity</tt>.  <tt>DynamicEntities</tt> offer a simple <tt>get(propertyName)</tt> / <tt>set(propertyName, propertyValue)</tt> API to manipulate their data.  <tt>DynamicEntities</tt> have an associated <tt>DynamicType</tt>, which will be generated in memory when the metadata is parsed.
 +
 +
 +
* '''[[EclipseLink/Examples/MOXy/Dynamic/StaticComparison|Comparison with Static JAXB]]''' - See how dynamic JAXB compares with static JAXB.
 
* '''[[EclipseLink/Examples/MOXy/Dynamic/JAXBContextFromXMLSchema|JAXB Context from XML Schema]]''' - See how to bootstrap a Dynamic JAXBContext from an XML Schema.
 
* '''[[EclipseLink/Examples/MOXy/Dynamic/JAXBContextFromXMLSchema|JAXB Context from XML Schema]]''' - See how to bootstrap a Dynamic JAXBContext from an XML Schema.
* '''[[EclipseLink/Examples/MOXy/Dyanmic/XmlToDynamicEntity|XML to DynamicEntity]]''' - Learn how to unmarshal an XML document to dynamic entities.
+
* '''[[EclipseLink/Examples/MOXy/Dynamic/XmlToDynamicEntity|XML to DynamicEntity]]''' - Learn how to unmarshal an XML document to dynamic entities.
* '''[[EclipseLink/Examples/MOXy/Dyanmic/DynamicEntityToXml|DynamicEntity to XML]]''' - Learn how to marshal a dyanamic entities to XML.
+
* '''[[EclipseLink/Examples/MOXy/Dynamic/DynamicEntityToXml|DynamicEntity to XML]]''' - Learn how to marshal a dyanamic entities to XML.
  
[[Category:EclipseLink:Example:MOXy]]
+
[[Category:EclipseLink:Example:MOXy:Dynamic]]

Revision as of 12:12, 24 June 2010

Overview

EclipseLink Dynamic MOXy introduces a new concept in JAXB development - the freedom to bootstrap a JAXBContext from a variety of metadata sources and use familiar JAXB APIs to marshal and unmarshal data, all without having actual compiled domain classes. This enables the metadata to be updated without worrying about updating and recompiling the previously-generated Java source code.

Instead of actual Java classes (e.g. Customer.class, Address.class, etc), the domain objects used in Dynamic MOXy will be subclasses of DynamicEntity. DynamicEntities offer a simple get(propertyName) / set(propertyName, propertyValue) API to manipulate their data. DynamicEntities have an associated DynamicType, which will be generated in memory when the metadata is parsed.