Class DynamicXmlV2MetadataSource
java.lang.Object
org.eclipse.persistence.jpa.rs.util.metadatasources.DynamicXmlV2MetadataSource
- All Implemented Interfaces:
MetadataSource
MetadataSource
used in the creation of dynamic JAXB contexts
for applications in JPARS v2.0.- Author:
- Dmitry Kornilov
-
Constructor Summary
ConstructorDescriptionDynamicXmlV2MetadataSource
(org.eclipse.persistence.internal.sessions.AbstractSession session, String packageName) Creates a new DynamicXmlV2MetadataSource. -
Method Summary
Modifier and TypeMethodDescriptiongetXmlBindings
(Map<String, ?> properties, ClassLoader classLoader)
-
Constructor Details
-
DynamicXmlV2MetadataSource
public DynamicXmlV2MetadataSource(org.eclipse.persistence.internal.sessions.AbstractSession session, String packageName) Creates a new DynamicXmlV2MetadataSource.- Parameters:
session
- the session.packageName
- the package name to process.
-
-
Method Details
-
getXmlBindings
- Specified by:
getXmlBindings
in interfaceMetadataSource
- 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
-