Package org.hibernate.boot.jaxb.spi
Interface Binder<T>
-
- All Known Implementing Classes:
AbstractBinder,MappingBinder
public interface Binder<T>Contract for performing JAXB binding.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <X extends T>
Binding<X>bind(InputStream stream, Origin origin)Bind from an InputStream<X extends T>
Binding<X>bind(Source source, Origin origin)Bind from an XML source.
-
-
-
Method Detail
-
bind
<X extends T> Binding<X> bind(Source source, Origin origin)
Bind from an XML source.- Parameters:
source- The XML source.origin- The descriptor of the source origin- Returns:
- The bound JAXB model
-
bind
<X extends T> Binding<X> bind(InputStream stream, Origin origin)
Bind from an InputStream- Parameters:
stream- The InputStream containing XMLorigin- The descriptor of the stream origin- Returns:
- The bound JAXB model
-
-