Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Setter versus constructor based dependency injections. Pola considderations?

Received: by 10.140.83.37 with SMTP id g37mr644168rvb.29.1272884626086;
        Mon, 03 May 2010 04:03:46 -0700 (PDT)
X-BeenThere: captalk@googlegroups.com
Received: by 10.141.187.12 with SMTP id o12ls78697100rvp.0.p; Mon, 03 May 2010 
	04:03:45 -0700 (PDT)
Received: by 10.141.124.7 with SMTP id b7mr936463rvn.22.1272884625693;
        Mon, 03 May 2010 04:03:45 -0700 (PDT)
Received: by 10.141.124.7 with SMTP id b7mr936462rvn.22.1272884625666;
        Mon, 03 May 2010 04:03:45 -0700 (PDT)
Return-Path: <cap-talk-boun...@mail.eros-os.org>
Received: from www.eros-os.com ([173.160.184.65])
        by gmr-mx.google.com with ESMTP id 19si789749pzk.11.2010.05.03.04.03.45;
        Mon, 03 May 2010 04:03:45 -0700 (PDT)
Received-SPF: neutral (google.com: 173.160.184.65 is neither permitted nor denied by best guess record for domain of cap-talk-boun...@mail.eros-os.org) client-ip=173.160.184.65;
Received: from www.eros-os.com (localhost.localdomain [127.0.0.1])
	by www.eros-os.com (8.13.8/8.13.8) with ESMTP id o44ERksi027008;
	Tue, 4 May 2010 07:28:06 -0700
Received: from smtp-vbr11.xs4all.nl (smtp-vbr11.xs4all.nl [194.109.24.31])
	by www.eros-os.com (8.13.8/8.13.8) with ESMTP id o44ERikA027005
	for <cap-t...@mail.eros-os.org>; Tue, 4 May 2010 07:27:45 -0700
Received: from webmail.xs4all.nl (dovemail12.xs4all.nl [194.109.26.14])
	by smtp-vbr11.xs4all.nl (8.13.8/8.13.8) with ESMTP id o43B25sV028031
	for <cap-t...@mail.eros-os.org>; Mon, 3 May 2010 13:02:05 +0200 (CEST)
	(envelope-from capib...@xs4all.nl)
Received: from 83.163.132.66 (SquirrelMail authenticated user rmeijer)
	by webmail.xs4all.nl with HTTP; Mon, 3 May 2010 13:02:05 +0200
Message-ID: <2b07ca78965f038889f2afb7f8fd27cd.squirrel@webmail.xs4all.nl>
Date: Mon, 3 May 2010 13:02:05 +0200
From: "Rob Meijer" <capib...@xs4all.nl>
To: "General discussions concerning capability systems."
	<cap-t...@mail.eros-os.org>
User-Agent: SquirrelMail/1.4.18
MIME-Version: 1.0
X-Virus-Scanned: by XS4ALL Virus Scanner
Subject: [cap-talk] Setter versus constructor based dependency injections.
 Pola considderations?
X-BeenThere: cap-t...@mail.eros-os.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: rmei...@xs4all.nl,
        "General discussions concerning capability systems."
	<cap-t...@mail.eros-os.org>
List-Id: "General discussions concerning capability systems."
	<cap-talk.mail.eros-os.org>
List-Unsubscribe: <http://www.eros-os.org/mailman/listinfo/cap-talk>,
	<mailto:cap-talk-requ...@mail.eros-os.org?subject=unsubscribe>
List-Archive: <http://www.eros-os.org/pipermail/cap-talk>
List-Post: <mailto:cap-t...@mail.eros-os.org>
List-Help: <mailto:cap-talk-requ...@mail.eros-os.org?subject=help>
List-Subscribe: <http://www.eros-os.org/mailman/listinfo/cap-talk>,
	<mailto:cap-talk-requ...@mail.eros-os.org?subject=subscribe>
Sender: cap-talk-boun...@mail.eros-os.org
Errors-To: cap-talk-boun...@mail.eros-os.org
X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 
	173.160.184.65 is neither permitted nor denied by best guess record for 
	domain of cap-talk-boun...@mail.eros-os.org) smtp.mail=cap-talk-boun...@mail.eros-os.org
X-Original-Sender: capib...@xs4all.nl
Content-Type: text/plain; charset=ISO-8859-1

While there are pro and con arguments for both setter based and
constructor based dependency injection (I personally prefer the
constructor based variants), I would really like to know if from a POLA
point of view there actually is any difference between the two, and if so,
what should be the preferred one and why. Has anyone given any serious
thought about this?







_______________________________________________
cap-talk mailing list
cap-t...@mail.eros-os.org
http://www.eros-os.org/mailman/listinfo/cap-talk

-- 
You received this message because you are subscribed to the Google Groups "captalk" group.
To post to this group, send email to captalk@googlegroups.com.
To unsubscribe from this group, send email to captalk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/captalk?hl=en.