Class FeatureSetPreV2
java.lang.Object
org.eclipse.persistence.jpa.rs.features.FeatureSetPreV2
- All Implemented Interfaces:
FeatureSet
The legacy initial feature set. Used if version number is not present or equal to 1.
- Author:
- gonural, Dmitry Kornilov
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.persistence.jpa.rs.features.FeatureSet
FeatureSet.Feature -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDynamicMetadataSource(org.eclipse.persistence.internal.sessions.AbstractSession session, String packageName) Builds a dynamicMetadataSourcefor given package.Gets a list ofMetadataSourcerelated to this version.getResponseBuilder(FeatureSet.Feature feature) Returns an instance ofFeatureResponseBuilderfor given feature.org.eclipse.persistence.internal.jaxb.SessionEventListenergetSessionEventListener(org.eclipse.persistence.internal.sessions.AbstractSession session) ReturnsSessionEventListenerrelated to this version.booleanisSupported(FeatureSet.Feature feature) Returns true if given feature is supported.
-
Constructor Details
-
FeatureSetPreV2
public FeatureSetPreV2()
-
-
Method Details
-
isSupported
Description copied from interface:FeatureSetReturns true if given feature is supported.- Specified by:
isSupportedin interfaceFeatureSet- Parameters:
feature- Feature to check.- Returns:
- true if feature is supported, false if not supported.
-
getResponseBuilder
Description copied from interface:FeatureSetReturns an instance ofFeatureResponseBuilderfor given feature.- Specified by:
getResponseBuilderin interfaceFeatureSet- Parameters:
feature- feature to get response builder for.- Returns:
FeatureResponseBuilder
-
getMetadataSources
Description copied from interface:FeatureSetGets a list ofMetadataSourcerelated to this version. Called on JAXB context initialization.- Specified by:
getMetadataSourcesin interfaceFeatureSet- Returns:
- a list of
MetadataSource
-
getDynamicMetadataSource
public MetadataSource getDynamicMetadataSource(org.eclipse.persistence.internal.sessions.AbstractSession session, String packageName) Description copied from interface:FeatureSetBuilds a dynamicMetadataSourcefor given package. Called on JAXB context initialization.- Specified by:
getDynamicMetadataSourcein interfaceFeatureSet- Parameters:
session- the sessionpackageName- 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) Description copied from interface:FeatureSetReturnsSessionEventListenerrelated to this version.- Specified by:
getSessionEventListenerin interfaceFeatureSet- Parameters:
session- the session- Returns:
SessionEventListener
-