Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 53379 invoked from network); 7 May 2007 14:42:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 May 2007 14:42:35 -0000 Received: (qmail 99345 invoked by uid 500); 7 May 2007 14:42:38 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 99302 invoked by uid 500); 7 May 2007 14:42:38 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 99291 invoked by uid 99); 7 May 2007 14:42:38 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 May 2007 07:42:38 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [12.130.29.202] (HELO eero.baz.org) (12.130.29.202) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 May 2007 07:42:31 -0700 Received: by eero.baz.org (Postfix, from userid 1017) id C7442898F4; Mon, 7 May 2007 10:42:10 -0400 (EDT) Received: from [192.168.1.3] (psc.progress.com [66.30.193.95]) by eero (tmda-ofmipd) with ESMTP; Mon, 07 May 2007 10:42:09 -0400 (EDT) Message-ID: <463F3ABB.7020201@thoughtcraft.com> Date: Mon, 07 May 2007 10:42:03 -0400 User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: axis-dev@ws.apache.org Subject: Re: [Axis2] Engaging modules at runtime. References: <463F00C9.10309@wso2.com> In-Reply-To: <463F00C9.10309@wso2.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit From: Glen Daniels X-Delivery-Agent: TMDA/1.0.2 (Bold Forbes) X-Virus-Checked: Checked by ClamAV on apache.org Hi Saminda! sumedha rubasinghe wrote: > forwarding with correct prefix... > > Saminda Abeyruwan wrote: >> Hi, >> >> AxisConfiguration has the following methods, >> >> public void engageModule(AxisModule axisModule, AxisConfiguration >> axisConfig) >> throws AxisFault { >> engageModule(axisModule); >> } --- > [1] >> >> private void engageModule(AxisModule module) throws AxisFault >> {...} --> [2] >> >> What is the purpose of [1]. Wouldn't it better to modify the access >> modifier of [2] to *public* and remove [1]. +1! However, this is a slightly more complicated problem. The engageModule(AxisModule, AxisConfiguration) API comes from AxisDescription, so we'd need to change THAT one to really do this. This is exactly what I think we should do, since all AxisDescription objects should be able to find their AxisConfiguration without any problem - therefore they shouldn't need to have it passed in (and in fact even leaving the API the option of passing it means that it's possible for people to screw up and pass a *different* AxisConfiguration than the one the current object belongs to... good APIs should protect against things like this). So I'd propose we remove the first version, and refactor the second version up to AxisDescription. --Glen --------------------------------------------------------------------- To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-dev-help@ws.apache.org