cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vjacheslav Borisov (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CXF-6174) MoxyJaxbContextResolved example is outdated
Date Tue, 23 Dec 2014 07:11:13 GMT
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)

Mime
View raw message