Return-Path: Delivered-To: apmail-db-ojb-dev-archive@www.apache.org Received: (qmail 85192 invoked from network); 13 Jul 2004 12:11:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 13 Jul 2004 12:11:11 -0000 Received: (qmail 68449 invoked by uid 500); 13 Jul 2004 12:11:10 -0000 Delivered-To: apmail-db-ojb-dev-archive@db.apache.org Received: (qmail 68398 invoked by uid 500); 13 Jul 2004 12:11:10 -0000 Mailing-List: contact ojb-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "OJB Developers List" Reply-To: "OJB Developers List" Delivered-To: mailing list ojb-dev@db.apache.org Received: (qmail 68383 invoked by uid 99); 13 Jul 2004 12:11:10 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [66.199.152.34] (HELO kgb07.kgbinternet.com) (66.199.152.34) by apache.org (qpsmtpd/0.27.1) with ESMTP; Tue, 13 Jul 2004 05:11:08 -0700 Received: from [192.168.1.100] (pool-70-17-69-109.res.east.verizon.net [70.17.69.109]) (authenticated bits=0) by kgb07.kgbinternet.com (8.12.8/8.12.8) with ESMTP id i6DCB2Jk019836 for ; Tue, 13 Jul 2004 06:11:02 -0600 Mime-Version: 1.0 (Apple Message framework v618) In-Reply-To: <40F3CFC7.90900@first.fhg.de> References: <40F02E7C.3040105@first.fhg.de> <40F3CFC7.90900@first.fhg.de> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: "Robert S. Sfeir" Subject: Re: ojb 1.1 ideas and proposals Date: Tue, 13 Jul 2004 08:11:06 -0400 To: "OJB Developers List" X-Mailer: Apple Mail (2.618) X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N FWIW, If we can avoid dependency on more containers/libs it would be better. If it's unavoidable, then it's unavoidable. R On Jul 13, 2004, at 8:04 AM, Thomas Dudziak wrote: > Brian McCallister wrote: > >>> Properties can be read from a file (the current schema with >>> OJB.properties) and from the System object as well as manipulated >>> via generic setProperty/getProperty accessors. >> >> >> Consider also looking at Spring's BeanFactory -- we may be >> reinventing things =) Making it basically bean configured opens up >> lots of configuration options though -- could be Spring, JMX, Pico >> (sort of), XML, etc with much fewer changes, particularly with the >> instance based config you talk about. > > I read a bit about IoC (btw. there is a good paper by Martin Fowler), > and specifically PicoContainer/NanoContainer, and it seems my idea is > somewhat similar (sort of a Setter Dependency Injection & > Configuration). > My question is, would it be ok to have the additional dependency to > PicoContainer (except when using within Spring or EJB where we would > provide alternative configurator implementations)? If yes, then > configuration could be realized with PicoContainer, e.g. reading the > properties from a file/from System/allow to set via a Configuration > object (getProperty/setProperty), which in turn uses PicoContainer to > setup the components. Otherwise, we could implement it directly, isn't > too difficult for our limited requirements. > > I think we should differ in one thing though: default values should be > defined within the components, not via external property files or in > the Configurator (as it is now), because changes to a component are > then local to the component, and there is no coding in the > configuration necessary to support new components or changes to > existing ones. > > Tom > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org > For additional commands, e-mail: ojb-dev-help@db.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org For additional commands, e-mail: ojb-dev-help@db.apache.org