Class DynamicXmlV2MetadataSource

  • All Implemented Interfaces:
    MetadataSource

    public class DynamicXmlV2MetadataSource
    extends java.lang.Object
    implements MetadataSource
    MetadataSource used in the creation of dynamic JAXB contexts for applications in JPARS v2.0.
    Author:
    Dmitry Kornilov
    Since:
    EclipseLink 2.6.0
    • Constructor Summary

      Constructors 
      Constructor Description
      DynamicXmlV2MetadataSource​(org.eclipse.persistence.internal.sessions.AbstractSession session, java.lang.String packageName)
      Creates a new DynamicXmlV2MetadataSource.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      XmlBindings getXmlBindings​(java.util.Map<java.lang.String,​?> properties, java.lang.ClassLoader classLoader)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DynamicXmlV2MetadataSource

        public DynamicXmlV2MetadataSource​(org.eclipse.persistence.internal.sessions.AbstractSession session,
                                          java.lang.String packageName)
        Creates a new DynamicXmlV2MetadataSource.
        Parameters:
        session - the session.
        packageName - the package name to process.
    • Method Detail

      • 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 JAXBContext
        classLoader - - The ClassLoader passed in to create the JAXBContext
        Returns:
        the XmlBindings object representing the metadata