java.lang.Object
com.sun.xml.ws.rx.util.JaxbContextRepository
TODO javadoc
WARNING: This class is a private utility class used by WS-RX implementation. Any usage outside
the intedned scope is strongly discouraged. The API exposed by this class may be changed, replaced
or removed without any advance notice.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.glassfish.jaxb.runtime.api.JAXBRIContextgetJaxbContext(com.sun.xml.ws.api.addressing.AddressingVersion av) Returns JAXB context that is intitialized based on a given addressing version.jakarta.xml.bind.UnmarshallergetUnmarshaller(com.sun.xml.ws.api.addressing.AddressingVersion av) Creates JAXBUnmarshallerthat is able to unmarshall elements for specified classes.
-
Constructor Details
-
JaxbContextRepository
- Throws:
RxRuntimeException
-
-
Method Details
-
getUnmarshaller
public jakarta.xml.bind.Unmarshaller getUnmarshaller(com.sun.xml.ws.api.addressing.AddressingVersion av) throws RxRuntimeException Creates JAXBUnmarshallerthat is able to unmarshall elements for specified classes.As JAXB unmarshallers are not thread-safe, this method should be used to create a new
Unmarshallerinstance whenever there is a chance that the same instance might be invoked concurrently from multiple threads. On th other hand, it is prudent to cache or poolUnmarshallerinstances if possible as constructing a newUnmarshallerinstance is rather expensive.For additional information see this blog entry.
- Returns:
- created JAXB unmarshaller
- Throws:
RxRuntimeException- in case the creation of unmarshaller failed
-
getJaxbContext
public org.glassfish.jaxb.runtime.api.JAXBRIContext getJaxbContext(com.sun.xml.ws.api.addressing.AddressingVersion av) Returns JAXB context that is intitialized based on a given addressing version.- Parameters:
av- addressing version used to initialize JAXB context- Returns:
- JAXB context that is intitialized based on a given addressing version.
-