Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1B16982C5 for ; Fri, 9 Sep 2011 18:43:32 +0000 (UTC) Received: (qmail 53471 invoked by uid 500); 9 Sep 2011 18:43:31 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 53347 invoked by uid 500); 9 Sep 2011 18:43:31 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 53227 invoked by uid 99); 9 Sep 2011 18:43:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Sep 2011 18:43:31 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Sep 2011 18:43:29 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 9D77F8AF4F for ; Fri, 9 Sep 2011 18:43:09 +0000 (UTC) Date: Fri, 9 Sep 2011 18:43:09 +0000 (UTC) From: "Daniel Kulp (JIRA)" To: issues@cxf.apache.org Message-ID: <552940768.9531.1315593789642.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (CXF-2500) JAXBContextInitializer does not support JAXBRIContext.ANNOTATION_READER property MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CXF-2500?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Daniel Kulp resolved CXF-2500. ------------------------------ Resolution: Won't Fix Fix Version/s: Invalid This improvement request has been open for years and no-one has stepped up to implement it. As such, it does not seems to be a priority for the existing CXF community. If, in the future, someone would like to tackle this, feel free to open is and attach a patch. > JAXBContextInitializer does not support JAXBRIContext.ANNOTATION_READER property > -------------------------------------------------------------------------------- > > Key: CXF-2500 > URL: https://issues.apache.org/jira/browse/CXF-2500 > Project: CXF > Issue Type: New Feature > Components: JAXB Databinding > Affects Versions: 2.2.4 > Reporter: Stefan Fussenegger > Fix For: Invalid > > Attachments: JAXBContextInitializer.java.patch > > > JAXBContextInitializer does not support JAXBRIContext.ANNOTATION_READER property which is used to specify a different RuntimeAnnotationReader. For instance, this property is required for JAXBIntroductions (http://www.jboss.org/community/wiki/JAXBIntroductions) to work. While trying to use JAXBIntroductions, I've noticed that JAXBContextInitializer was ignoring @XmlTransient and therefore included a lot of unused classes - (marshalling and unmarshalling works as expected though) > Instead of calling (e.g.) clazz.getAnnotation(XmlJavaTypeAdapter.class) directly, runtimeAnnotationReader.getClassAnnotation(clazz, XmlJavaTypeAdapter.class, srcpos) should be used. I'll attach a patch containing yet untested (sorry, but I wasn't able to build from source) changes to JAXBContextInitializer. > If out-of-the-box support of JAXBRIContext.ANNOTATION_READER isn't possible, I'd really appreciate the possibility to plug in a custom implementation, e.g. using JAXBContextInitializer initializer = newJAXBContextInitializer(serviceInfo, contextClasses) in JAXBDataBinding. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira