Package org.hibernate.boot.jaxb.internal
Class MappingBinder
java.lang.Object
org.hibernate.boot.jaxb.internal.AbstractBinder<JaxbBindableMappingDescriptor>
org.hibernate.boot.jaxb.internal.MappingBinder
- All Implemented Interfaces:
Binder<JaxbBindableMappingDescriptor>
Responsible for coordinating binding of mapping XML documents into
JAXB representations, producing
Binding
references.-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MappingBinder.Options
static final MappingBinder.Options
-
Constructor Summary
ConstructorsConstructorDescriptionMappingBinder
(ResourceStreamLocator resourceStreamLocator, @Nullable Function<String, Object> settingsAccess) MappingBinder
(ResourceStreamLocator resourceStreamLocator, Supplier<MappingBinder.Options> optionsAccess, Supplier<UnsupportedFeatureHandling> unsupportedHandlingAccess) Full constructorMappingBinder
(ResourceStreamLocator resourceStreamLocator, UnsupportedFeatureHandling unsupportedHandling) Constructor used by the Gradle pluginMappingBinder
(ResourceStreamLocator resourceStreamLocator, MappingBinder.Options options) Constructor used everywhere elseMappingBinder
(ServiceRegistry serviceRegistry) -
Method Summary
Modifier and TypeMethodDescriptionprotected <X extends JaxbBindableMappingDescriptor>
Binding<X>doBind
(XMLEventReader staxEventReader, StartElement rootElementStartEvent, Origin origin) boolean
Methods inherited from class org.hibernate.boot.jaxb.internal.AbstractBinder
bind, bind, createReader, createReader, hasNamespace, jaxb, seekRootElementStartEvent
-
Field Details
-
VALIDATING
-
NON_VALIDATING
-
-
Constructor Details
-
MappingBinder
public MappingBinder(ResourceStreamLocator resourceStreamLocator, Supplier<MappingBinder.Options> optionsAccess, Supplier<UnsupportedFeatureHandling> unsupportedHandlingAccess) Full constructor -
MappingBinder
public MappingBinder(ResourceStreamLocator resourceStreamLocator, @Nullable Function<String, Object> settingsAccess) -
MappingBinder
-
MappingBinder
public MappingBinder(ResourceStreamLocator resourceStreamLocator, UnsupportedFeatureHandling unsupportedHandling) Constructor used by the Gradle plugin -
MappingBinder
Constructor used everywhere else
-
-
Method Details
-
isValidationEnabled
public boolean isValidationEnabled()- Specified by:
isValidationEnabled
in classAbstractBinder<JaxbBindableMappingDescriptor>
-
doBind
protected <X extends JaxbBindableMappingDescriptor> Binding<X> doBind(XMLEventReader staxEventReader, StartElement rootElementStartEvent, Origin origin) - Specified by:
doBind
in classAbstractBinder<JaxbBindableMappingDescriptor>
-
mappingJaxbContext
-