You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Vjacheslav Borisov (JIRA)" <ji...@apache.org> on 2014/12/23 08:11:13 UTC
[jira] [Created] (CXF-6174) MoxyJaxbContextResolved example is
outdated
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)