Package org.hibernate.boot.jaxb.internal
Class UrlXmlSource
java.lang.Object
org.hibernate.boot.jaxb.internal.UrlXmlSource
Support for processing mapping XML from a URL reference.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Binding
<? extends JaxbBindableMappingDescriptor> fromResource
(String resourceName, ClassLoaderService classLoaderService, MappingBinder mappingBinder) Create a mapping binding from a classpath resource (via URL).static Binding
<? extends JaxbBindableMappingDescriptor> fromUrl
(URL url, MappingBinder mappingBinder) Create a mapping binding from a URLstatic Binding
<? extends JaxbBindableMappingDescriptor> fromUrl
(URL url, Origin origin, MappingBinder binder) Create a mapping binding from a URL
-
Constructor Details
-
UrlXmlSource
public UrlXmlSource()
-
-
Method Details
-
fromResource
public static Binding<? extends JaxbBindableMappingDescriptor> fromResource(String resourceName, ClassLoaderService classLoaderService, MappingBinder mappingBinder) Create a mapping binding from a classpath resource (via URL).- See Also:
-
fromUrl
public static Binding<? extends JaxbBindableMappingDescriptor> fromUrl(URL url, MappingBinder mappingBinder) Create a mapping binding from a URL- See Also:
-
fromUrl
public static Binding<? extends JaxbBindableMappingDescriptor> fromUrl(URL url, Origin origin, MappingBinder binder) Create a mapping binding from a URL- Parameters:
url
- The url from which to read the mapping informationorigin
- Description of the source from which the url camebinder
- The JAXB binder to use
-