Пример #1
0
 /**
  * Returns JAXB context that is intitialized based on a given addressing version.
  *
  * @param av addressing version used to initialize JAXB context
  * @return JAXB context that is intitialized based on a given addressing version.
  */
 public JAXBRIContext getJaxbContext(AddressingVersion av) {
   return jaxbContextRepository.getJaxbContext(av);
 }
Пример #2
0
 /**
  * Creates JAXB {@link Unmarshaller} that is able to unmarshall protocol elements for given WS-MC
  * version.
  *
  * <p>As JAXB unmarshallers are not thread-safe, this method should be used to create a new {@link
  * Unmarshaller} instance 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 pool {@link
  * Unmarshaller} instances if possible as constructing a new {@link Unmarshaller} instance is
  * rather expensive.
  *
  * <p>For additional information see this <a
  * href="https://jaxb.dev.java.net/guide/Performance_and_thread_safety.html">blog entry</a>.
  *
  * @return created JAXB unmarshaller
  * @exception RxRuntimeException in case the creation of unmarshaller failed
  */
 public Unmarshaller getUnmarshaller(AddressingVersion av) throws RxRuntimeException {
   return jaxbContextRepository.getUnmarshaller(av);
 }