Class FeatureSetV2
java.lang.Object
org.eclipse.persistence.jpa.rs.features.FeatureSetV2
- All Implemented Interfaces:
FeatureSet
Feature set for service version 2.0.
- Since:
- EclipseLink 2.6.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.persistence.jpa.rs.features.FeatureSet
FeatureSet.Feature
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetDynamicMetadataSource
(Session session, String packageName) Builds a dynamicMetadataSource
for given package.Gets a list ofMetadataSource
related to this version.getResponseBuilder
(FeatureSet.Feature feature) Returns an instance ofFeatureResponseBuilder
for given feature.getSessionEventListener
(Session session) ReturnsSessionEventListener
related to this version.boolean
isSupported
(FeatureSet.Feature feature) Returns true if given feature is supported.
-
Constructor Details
-
FeatureSetV2
public FeatureSetV2()
-
-
Method Details
-
isSupported
Description copied from interface:FeatureSet
Returns true if given feature is supported.- Specified by:
isSupported
in interfaceFeatureSet
- Parameters:
feature
- Feature to check.- Returns:
- true if feature is supported, false if not supported.
-
getResponseBuilder
Description copied from interface:FeatureSet
Returns an instance ofFeatureResponseBuilder
for given feature.- Specified by:
getResponseBuilder
in interfaceFeatureSet
- Parameters:
feature
- feature to get response builder for.- Returns:
FeatureResponseBuilder
-
getMetadataSources
Description copied from interface:FeatureSet
Gets a list ofMetadataSource
related to this version. Called on JAXB context initialization.- Specified by:
getMetadataSources
in interfaceFeatureSet
- Returns:
- a list of
MetadataSource
-
getDynamicMetadataSource
Description copied from interface:FeatureSet
Builds a dynamicMetadataSource
for given package. Called on JAXB context initialization.- Specified by:
getDynamicMetadataSource
in interfaceFeatureSet
- Parameters:
session
- the sessionpackageName
- package name to build meta data for.- Returns:
MetadataSource
-
getSessionEventListener
Description copied from interface:FeatureSet
ReturnsSessionEventListener
related to this version.- Specified by:
getSessionEventListener
in interfaceFeatureSet
- Parameters:
session
- the session- Returns:
SessionEventListener
-