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 B1D9610FE1 for ; Sat, 23 Nov 2013 16:57:50 +0000 (UTC) Received: (qmail 78498 invoked by uid 500); 23 Nov 2013 16:57:50 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 78269 invoked by uid 500); 23 Nov 2013 16:57:46 -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 77839 invoked by uid 99); 23 Nov 2013 16:57:37 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 Nov 2013 16:57:37 +0000 Date: Sat, 23 Nov 2013 16:57:37 +0000 (UTC) From: "Andriy Redko (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CXF-4199) Support class-scanning for discovering JAX-RS providers 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-4199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13830698#comment-13830698 ] Andriy Redko commented on CXF-4199: ----------------------------------- Hi Sergey, I have spent some time to understand the scope of the issue (it's somehow related to CXF-3725 in a way to make auto-discovery work in a generice way). The option to have something like that (taken from CXF-3725) {noformat} {noformat} is quite interesting though in my opinion it duplicates a bit the Spring's way to discover things using @ComponentScan. What I came up might look wrong but it looks like this: {noformat} {noformat} The actual implementation is not a just a flag but context-dependent strategy: SpringProvidersDiscovery() and ClasspathProvidersDiscovery(). SpringProvidersDiscovery will handle all discovered beans with @Provider annotations while ClasspathProvidersDiscovery will handle all discovered classes from classpath with @Provider annotations (+ we should provide basePackages / baseClasses to limit the auto-discovery scope). What do you think, is it feasible and make sense to you? Thank you. Andriy. > Support class-scanning for discovering JAX-RS providers > -------------------------------------------------------- > > Key: CXF-4199 > URL: https://issues.apache.org/jira/browse/CXF-4199 > Project: CXF > Issue Type: Improvement > Components: JAX-RS > Reporter: Sergey Beryozkin > > With the search extensions module containing a provider the time has come to support the optional class-scanning. Will help in cases when the providers are simple and no extra configuration is expected. Post 2.6 though -- This message was sent by Atlassian JIRA (v6.1#6144)