Vjacheslav Borisov created CXF-6174:
---------------------------------------
Summary: MoxyJaxbContextResolved example is outdated
Key: CXF-6174
URL: https://issues.apache.org/jira/browse/CXF-6174
Project: CXF
Issue Type: Bug
Components: Documentation
Reporter: Vjacheslav Borisov
Priority: Trivial
http://cxf.apache.org/docs/jax-rs-data-bindings.html#JAX-RSDataBindings-JAXBandMoxy
MoxyJaxbContextResolved example is outdated
this is working :
{code:title=MoxyJaxbContextResolver java|borderStyle=solid}
public class MoxyJaxbContextResolver implements ContextResolver<JAXBContext> {
@Override
public JAXBContext getContext(Class<?> cls) {
try {
return JAXBContextFactory.createContext(new Class[] {cls},null);
} catch (JAXBException ex) {
throw new RuntimeException(ex);
}
}
}
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)