Return-Path: Delivered-To: apmail-incubator-geronimo-dev-archive@www.apache.org Received: (qmail 3436 invoked from network); 14 Dec 2003 15:38:30 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 14 Dec 2003 15:38:30 -0000 Received: (qmail 52584 invoked by uid 500); 14 Dec 2003 15:38:18 -0000 Delivered-To: apmail-incubator-geronimo-dev-archive@incubator.apache.org Received: (qmail 52528 invoked by uid 500); 14 Dec 2003 15:38:17 -0000 Mailing-List: contact geronimo-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: geronimo-dev@incubator.apache.org Delivered-To: mailing list geronimo-dev@incubator.apache.org Received: (qmail 52514 invoked from network); 14 Dec 2003 15:38:17 -0000 Received: from unknown (HELO grerelbul01.net.external.hp.com) (155.208.255.36) by daedalus.apache.org with SMTP; 14 Dec 2003 15:38:17 -0000 Received: from vistula.poland.hp.com (vistula.poland.hp.com [15.188.0.12]) by grerelbul01.net.external.hp.com (Postfix) with ESMTP id A658738B32 for ; Sun, 14 Dec 2003 16:38:18 +0100 (CET) Received: from hp.com (namdynwar28.poland.hp.com [15.127.97.28]) by vistula.poland.hp.com with ESMTP (8.9.3 (PHNE_28760_binary)/8.8.6 SMKit7.02) id QAA28778 for ; Sun, 14 Dec 2003 16:38:16 +0100 (MET) Message-ID: <3FDC83E3.9030200@hp.com> Date: Sun, 14 Dec 2003 16:38:11 +0100 From: Jacek Laskowski Organization: HP Consulting & Integration, Poland User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.0) Gecko/20020530 X-Accept-Language: pl,en MIME-Version: 1.0 To: geronimo-dev@incubator.apache.org Subject: Renaming methods in o.a.g.kernel.deployment.AbstractDeploymentPlanner Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi, I wonder why are the methods of o.a.g.kernel.deployment.AbstractDeploymentPlanner: protected abstract boolean addURL(DeployURL deployURL, Set goals, Set plans) throws DeploymentException; protected abstract boolean redeployURL(RedeployURL redeployURL, Set goals) throws DeploymentException; protected abstract boolean removeURL(UndeployURL undeployURL, Set goals, Set plans) throws DeploymentException; named this way? Wouldn't it be better off with the names changed to: protected abstract boolean deployURL(DeployURL deployURL, Set goals, Set plans) throws DeploymentException; protected abstract boolean redeployURL(RedeployURL redeployURL, Set goals) throws DeploymentException; protected abstract boolean undeployURL(UndeployURL undeployURL, Set goals, Set plans) throws DeploymentException; The names would then be more consistent with the names of the first input parameter (actually redeployURL is so). Also, they would be more meaningful (at least to me :-)) The first time I saw addURL I thought it'd add a URL to the list of deployments to deploy, but quickly realized that it did even more, it added the URL to the list of deployments by deploying it. Jacek