[ 
https://issues.apache.org/jira/browse/CXF-6174?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sergey Beryozkin resolved CXF-6174.
-----------------------------------
    Resolution: Fixed
      Assignee: Sergey Beryozkin

Thanks for spotting it.


> 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
>            Assignee: Sergey Beryozkin
>            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)

Reply via email to