Package org.hibernate.boot.jaxb.internal
Class MappingBinder
- java.lang.Object
-
- org.hibernate.boot.jaxb.internal.AbstractBinder<BindableMappingDescriptor>
-
- org.hibernate.boot.jaxb.internal.MappingBinder
-
- All Implemented Interfaces:
Binder<BindableMappingDescriptor>
public class MappingBinder extends AbstractBinder<BindableMappingDescriptor>
Responsible for coordinating binding of mapping XML documents into JAXB representations, producingBinding
references.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
MappingBinder.Options
-
Field Summary
Fields Modifier and Type Field Description static MappingBinder.Options
NON_VALIDATING
static MappingBinder.Options
VALIDATING
-
Constructor Summary
Constructors Constructor Description MappingBinder(ResourceStreamLocator resourceStreamLocator, 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <X extends BindableMappingDescriptor>
Binding<X>doBind(XMLEventReader staxEventReader, StartElement rootElementStartEvent, Origin origin)
boolean
isValidationEnabled()
JAXBContext
mappingJaxbContext()
-
Methods inherited from class org.hibernate.boot.jaxb.internal.AbstractBinder
bind, bind, createReader, createReader, hasNamespace, jaxb, seekRootElementStartEvent
-
-
-
-
Field Detail
-
VALIDATING
public static final MappingBinder.Options VALIDATING
-
NON_VALIDATING
public static final MappingBinder.Options NON_VALIDATING
-
-
Constructor Detail
-
MappingBinder
public MappingBinder(ResourceStreamLocator resourceStreamLocator, Supplier<MappingBinder.Options> optionsAccess, Supplier<UnsupportedFeatureHandling> unsupportedHandlingAccess)
Full constructor
-
MappingBinder
public MappingBinder(ResourceStreamLocator resourceStreamLocator, Function<String,Object> settingsAccess)
-
MappingBinder
public MappingBinder(ServiceRegistry serviceRegistry)
-
MappingBinder
public MappingBinder(ResourceStreamLocator resourceStreamLocator, UnsupportedFeatureHandling unsupportedHandling)
Constructor used by the Gradle plugin
-
MappingBinder
public MappingBinder(ResourceStreamLocator resourceStreamLocator, MappingBinder.Options options)
Constructor used everywhere else
-
-
Method Detail
-
isValidationEnabled
public boolean isValidationEnabled()
- Specified by:
isValidationEnabled
in classAbstractBinder<BindableMappingDescriptor>
-
doBind
protected <X extends BindableMappingDescriptor> Binding<X> doBind(XMLEventReader staxEventReader, StartElement rootElementStartEvent, Origin origin)
- Specified by:
doBind
in classAbstractBinder<BindableMappingDescriptor>
-
mappingJaxbContext
@Internal public JAXBContext mappingJaxbContext()
-
-