Package org.hibernate.boot.spi
Class XmlMappingBinderAccess
- java.lang.Object
- org.hibernate.boot.spi.XmlMappingBinderAccess
public classXmlMappingBinderAccessextendsObject
Holds the XML binder and a classloader used for binding mappings.- API Note:
- This class is very poorly named.
Constructor Summary
Constructors Constructor Description XmlMappingBinderAccess(ServiceRegistry serviceRegistry)XmlMappingBinderAccess(ServiceRegistry serviceRegistry,Function<String,Object> configAccess)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <X extendsBindableMappingDescriptor>
Binding<X>bind(File file)Create abinding from a File reference<X extendsBindableMappingDescriptor>
Binding<X>bind(InputStream xmlInputStream)Create abinding from an input stream<X extendsBindableMappingDescriptor>
Binding<X>bind(String resource)Create abinding from a named URL resource<X extendsBindableMappingDescriptor>
Binding<X>bind(URL url)Create abinding from a URL<X extendsBindableMappingDescriptor>
Binding<X>bind(InputStreamAccess xmlInputStreamAccess)Create abinding from an input streamMappingBindergetMappingBinder()
Constructor Detail
XmlMappingBinderAccess
public XmlMappingBinderAccess(ServiceRegistry serviceRegistry)
XmlMappingBinderAccess
public XmlMappingBinderAccess(ServiceRegistry serviceRegistry,Function<String,Object> configAccess)
Method Detail
getMappingBinder
public MappingBinder getMappingBinder()
bind
public <X extendsBindableMappingDescriptor> Binding<X> bind(String resource)
Create abinding from a named URL resource
bind
public <X extendsBindableMappingDescriptor> Binding<X> bind(File file)
Create abinding from a File reference
bind
public <X extendsBindableMappingDescriptor> Binding<X> bind(InputStreamAccess xmlInputStreamAccess)
Create abinding from an input stream
bind
public <X extendsBindableMappingDescriptor> Binding<X> bind(InputStream xmlInputStream)
Create abinding from an input stream
bind
public <X extendsBindableMappingDescriptor> Binding<X> bind(URL url)
Create abinding from a URL