Interface FeatureSet
-
- All Known Implementing Classes:
FeatureSetPreV2
,FeatureSetV2
public interface FeatureSet
This interface represents a set of JPARS features. Each service version has it's own implementation of this interface.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
FeatureSet.Feature
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MetadataSource
getDynamicMetadataSource(org.eclipse.persistence.internal.sessions.AbstractSession session, java.lang.String packageName)
Builds a dynamicMetadataSource
for given package.java.util.List<MetadataSource>
getMetadataSources()
Gets a list ofMetadataSource
related to this version.FeatureResponseBuilder
getResponseBuilder(FeatureSet.Feature feature)
Returns an instance ofFeatureResponseBuilder
for given feature.org.eclipse.persistence.internal.jaxb.SessionEventListener
getSessionEventListener(org.eclipse.persistence.internal.sessions.AbstractSession session)
ReturnsSessionEventListener
related to this version.boolean
isSupported(FeatureSet.Feature feature)
Returns true if given feature is supported.
-
-
-
Method Detail
-
isSupported
boolean isSupported(FeatureSet.Feature feature)
Returns true if given feature is supported.- Parameters:
feature
- Feature to check.- Returns:
- true if feature is supported, false if not supported.
-
getResponseBuilder
FeatureResponseBuilder getResponseBuilder(FeatureSet.Feature feature)
Returns an instance ofFeatureResponseBuilder
for given feature.- Parameters:
feature
- feature to get response builder for.- Returns:
FeatureResponseBuilder
-
getMetadataSources
java.util.List<MetadataSource> getMetadataSources()
Gets a list ofMetadataSource
related to this version. Called on JAXB context initialization.- Returns:
- a list of
MetadataSource
-
getDynamicMetadataSource
MetadataSource getDynamicMetadataSource(org.eclipse.persistence.internal.sessions.AbstractSession session, java.lang.String packageName)
Builds a dynamicMetadataSource
for given package. Called on JAXB context initialization.- Parameters:
session
- the sessionpackageName
- package name to build meta data for.- Returns:
MetadataSource
-
getSessionEventListener
org.eclipse.persistence.internal.jaxb.SessionEventListener getSessionEventListener(org.eclipse.persistence.internal.sessions.AbstractSession session)
ReturnsSessionEventListener
related to this version.- Parameters:
session
- the session- Returns:
SessionEventListener
-
-