org.eclipse.persistence.jpa.rs.util
Class DynamicXMLMetadataSource
java.lang.Object
org.eclipse.persistence.jpa.rs.util.DynamicXMLMetadataSource
- All Implemented Interfaces:
- MetadataSource
public class DynamicXMLMetadataSource
- extends java.lang.Object
- implements MetadataSource
MetadataSource
used in the creation of dynamic JAXB contexts for applications.
- See Also:
PersistenceFactory#createJAXBContext(Server)
- Author:
- dclarke
- Since:
- EclipseLink 2.4.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DynamicXMLMetadataSource
public DynamicXMLMetadataSource(Server session,
java.lang.String packageName)
createSelfProperty
public static JAXBElement<XmlElement> createSelfProperty(java.lang.String ownerClassName,
ObjectFactory objectFactory)
createRelationshipsProperty
public static JAXBElement<XmlElement> createRelationshipsProperty(java.lang.String ownerClassName,
ObjectFactory objectFactory)
addXmlAdapter
public static void addXmlAdapter(XmlElement xmlElement)
getXmlBindings
public XmlBindings getXmlBindings(java.util.Map<java.lang.String,?> properties,
java.lang.ClassLoader classLoader)
- Specified by:
getXmlBindings
in interface MetadataSource
- Parameters:
properties
- - The properties passed in to create the JAXBContextclassLoader
- - The ClassLoader passed in to create the JAXBContext
- Returns:
- the XmlBindings object representing the metadata