|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.xml.ws.rx.util.JaxbContextRepository
public final class 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 | |
|---|---|
JaxbContextRepository(java.lang.Class<?>... classes)
|
|
| Method Summary | |
|---|---|
JAXBRIContext |
getJaxbContext(com.sun.xml.ws.api.addressing.AddressingVersion av)
Returns JAXB context that is intitialized based on a given addressing version. |
Unmarshaller |
getUnmarshaller(com.sun.xml.ws.api.addressing.AddressingVersion av)
Creates JAXB Unmarshaller that is able to unmarshall elements for specified classes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JaxbContextRepository(java.lang.Class<?>... classes)
throws RxRuntimeException
RxRuntimeException| Method Detail |
|---|
public Unmarshaller getUnmarshaller(com.sun.xml.ws.api.addressing.AddressingVersion av)
throws RxRuntimeException
Unmarshaller that is able to unmarshall elements for specified classes.
As JAXB unmarshallers are not thread-safe, this method should be used to create a new 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 Unmarshaller instances if possible as
constructing a new Unmarshaller instance is rather expensive.
For additional information see this blog entry.
RxRuntimeException - in case the creation of unmarshaller failedpublic JAXBRIContext getJaxbContext(com.sun.xml.ws.api.addressing.AddressingVersion av)
av - addressing version used to initialize JAXB context
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||