Class FeatureSetPreV2

  • All Implemented Interfaces:
    FeatureSet

    public class FeatureSetPreV2
    extends java.lang.Object
    implements FeatureSet
    The legacy initial feature set. Used if version number is not present or equal to 1.
    Author:
    gonural, Dmitry Kornilov
    Since:
    EclipseLink 2.6.0.
    • Constructor Detail

      • FeatureSetPreV2

        public FeatureSetPreV2()
    • Method Detail

      • isSupported

        public boolean isSupported​(FeatureSet.Feature feature)
        Returns true if given feature is supported.
        Specified by:
        isSupported in interface FeatureSet
        Parameters:
        feature - Feature to check.
        Returns:
        true if feature is supported, false if not supported.
      • getDynamicMetadataSource

        public MetadataSource getDynamicMetadataSource​(org.eclipse.persistence.internal.sessions.AbstractSession session,
                                                       java.lang.String packageName)
        Builds a dynamic MetadataSource for given package. Called on JAXB context initialization.
        Specified by:
        getDynamicMetadataSource in interface FeatureSet
        Parameters:
        session - the session
        packageName - package name to build meta data for.
        Returns:
        MetadataSource
      • getSessionEventListener

        public org.eclipse.persistence.internal.jaxb.SessionEventListener getSessionEventListener​(org.eclipse.persistence.internal.sessions.AbstractSession session)
        Returns SessionEventListener related to this version.
        Specified by:
        getSessionEventListener in interface FeatureSet
        Parameters:
        session - the session
        Returns:
        SessionEventListener