Package org.hibernate.boot.spi
Class XmlMappingBinderAccess
- java.lang.Object
-
- org.hibernate.boot.spi.XmlMappingBinderAccess
-
public class XmlMappingBinderAccess extends Object
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 extends BindableMappingDescriptor>
Binding<X>bind(File file)
Create a binding from a File reference<X extends BindableMappingDescriptor>
Binding<X>bind(InputStream xmlInputStream)
Create a binding from an input stream<X extends BindableMappingDescriptor>
Binding<X>bind(String resource)
Create a binding from a named URL resource<X extends BindableMappingDescriptor>
Binding<X>bind(URL url)
Create a binding from a URL<X extends BindableMappingDescriptor>
Binding<X>bind(InputStreamAccess xmlInputStreamAccess)
Create a binding from an input streamMappingBinder
getMappingBinder()
-
-
-
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 extends BindableMappingDescriptor> Binding<X> bind(String resource)
Create a binding from a named URL resource
-
bind
public <X extends BindableMappingDescriptor> Binding<X> bind(File file)
Create a binding from a File reference
-
bind
public <X extends BindableMappingDescriptor> Binding<X> bind(InputStreamAccess xmlInputStreamAccess)
Create a binding from an input stream
-
bind
public <X extends BindableMappingDescriptor> Binding<X> bind(InputStream xmlInputStream)
Create a binding from an input stream
-
bind
public <X extends BindableMappingDescriptor> Binding<X> bind(URL url)
Create a binding from a URL
-
-