public class FeatureSetV2 extends java.lang.Object implements FeatureSet
FeatureSet.Feature
Constructor and Description |
---|
FeatureSetV2() |
Modifier and Type | Method and Description |
---|---|
MetadataSource |
getDynamicMetadataSource(org.eclipse.persistence.internal.sessions.AbstractSession session,
java.lang.String packageName)
Builds a dynamic
MetadataSource for given package. |
java.util.List<MetadataSource> |
getMetadataSources()
Gets a list of
MetadataSource related to this version. |
FeatureResponseBuilder |
getResponseBuilder(FeatureSet.Feature feature)
Returns an instance of
FeatureResponseBuilder for given feature. |
org.eclipse.persistence.internal.jaxb.SessionEventListener |
getSessionEventListener(org.eclipse.persistence.internal.sessions.AbstractSession session)
Returns
SessionEventListener related to this version. |
boolean |
isSupported(FeatureSet.Feature feature)
Returns true if given feature is supported.
|
public boolean isSupported(FeatureSet.Feature feature)
isSupported
in interface FeatureSet
feature
- Feature to check.public FeatureResponseBuilder getResponseBuilder(FeatureSet.Feature feature)
FeatureResponseBuilder
for given feature.getResponseBuilder
in interface FeatureSet
feature
- feature to get response builder for.FeatureResponseBuilder
public java.util.List<MetadataSource> getMetadataSources()
MetadataSource
related to this version. Called on JAXB context
initialization.getMetadataSources
in interface FeatureSet
MetadataSource
public MetadataSource getDynamicMetadataSource(org.eclipse.persistence.internal.sessions.AbstractSession session, java.lang.String packageName)
MetadataSource
for given package. Called on JAXB context
initialization.getDynamicMetadataSource
in interface FeatureSet
session
- the sessionpackageName
- package name to build meta data for.MetadataSource
public org.eclipse.persistence.internal.jaxb.SessionEventListener getSessionEventListener(org.eclipse.persistence.internal.sessions.AbstractSession session)
SessionEventListener
related to this version.getSessionEventListener
in interface FeatureSet
session
- the sessionSessionEventListener