Return-Path: Delivered-To: apmail-incubator-cxf-issues-archive@locus.apache.org Received: (qmail 23147 invoked from network); 16 Oct 2006 16:55:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Oct 2006 16:55:25 -0000 Received: (qmail 87151 invoked by uid 500); 16 Oct 2006 16:55:25 -0000 Delivered-To: apmail-incubator-cxf-issues-archive@incubator.apache.org Received: (qmail 87127 invoked by uid 500); 16 Oct 2006 16:55:25 -0000 Mailing-List: contact cxf-issues-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cxf-dev@incubator.apache.org Delivered-To: mailing list cxf-issues@incubator.apache.org Received: (qmail 87117 invoked by uid 99); 16 Oct 2006 16:55:25 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Oct 2006 09:55:25 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Oct 2006 09:55:24 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 016A47142D2 for ; Mon, 16 Oct 2006 09:54:35 -0700 (PDT) Message-ID: <17028837.1161017675001.JavaMail.jira@brutus> Date: Mon, 16 Oct 2006 09:54:35 -0700 (PDT) From: "Andrea Smyth (JIRA)" To: cxf-issues@incubator.apache.org Subject: [jira] Created: (CXF-153) Simplify Registration of Extensions MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Simplify Registration of Extensions ----------------------------------- Key: CXF-153 URL: http://issues.apache.org/jira/browse/CXF-153 Project: CXF Issue Type: Improvement Components: Bus Affects Versions: 2.0-M1 Reporter: Andrea Smyth Many bus extensions have a data member of type Bus, a corresponding setter that is typically injected (as per cxf-extensions.xml), and a @PostConstruct annotated method voif register(), in which they use the reference to the bus to register themselves as an extension to the bus. Otherwise the bus data member is never used. This should be simplified to avoid duplication and the trivial use of the bus data member just for the purpose of this registration. A second type of dynamically loaded objects (typically the on demand loaded bus extensions which do not actually register with the Bus) are the Foo factory objects (binding factories, destination factories, conduit initiators). They all follow the same priniciple that after creation they register themselves with their corresponding Foo factory manager. Again, this is a lot of duplicated code. See thread with subject "Two better ideas for Spring discovery" on cxf-dev for ideas on how to improve this - essentially based on searching the application context for objects of a certain type: (17:11:47) dandiep: instead of having the transport register itself, we can have a Collection class which we write which searches through the spring context for all the DestinationFactorys -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira