Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 46029 invoked from network); 24 Mar 2004 16:11:53 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 24 Mar 2004 16:11:53 -0000 Received: (qmail 25482 invoked by uid 500); 24 Mar 2004 16:11:36 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 25452 invoked by uid 500); 24 Mar 2004 16:11:36 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 25420 invoked from network); 24 Mar 2004 16:11:36 -0000 Received: from unknown (HELO omr2.netsolmail.com) (216.168.230.163) by daedalus.apache.org with SMTP; 24 Mar 2004 16:11:36 -0000 Received: from ms4.netsolmail.com (IDENT:mirapoint@[216.168.230.177]) by omr2.netsolmail.com (8.12.10/8.12.10) with ESMTP id i2OG7JJJ022907 for ; Wed, 24 Mar 2004 11:07:20 -0500 (EST) Received: from ms4.netsolmail.com (localhost.netsolmail.com [127.0.0.1]) by ms4.netsolmail.com (Mirapoint Messaging Server MOS 3.2.2-GA) with ESMTP id BEC71170; Wed, 24 Mar 2004 11:11:36 -0500 (EST) Message-Id: <200403241611.BEC71170@ms4.netsolmail.com> Received: from 171.159.192.10 by ms4.netsolmail.com (Mirapoint Messaging Server MOS 3.2.2-GA) with HTTP/1.1; Wed, 24 Mar 2004 11:11:36 -0500 Date: Wed, 24 Mar 2004 11:11:36 -0500 From: Luke Blanshard Subject: Re: [HiveMind] Force loading of Services To: Jakarta Commons Developers List X-Mailer: Webmail Mirapoint Direct 3.2.2-GA MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 I like both of these ideas, forcing the service to be loaded when you explicitly get it from the registry with a special method and having a way to mark a service as needing to be loaded in its descriptor. Here's a third idea: when you pass one service to another in the descriptor (via a constructor or a property), have a way to mark the passed service as needing to be loaded at registry initialization time. Luke Christian Essl wrote: > A few days ago Benjamin had mainly the complain about the current > service handling, that problems in the service construction may arise > very late during runtime. While we discussed very lenghty why this is > so in Hivemind I somehow share his whishes that it should be possible > to get an exception either at Registry build time or at first access > for at least special marked services. > > Maybe it could help if the Registry had a method getLoadedService() > this method would instruct (via the ServiceExtensionPoint) the Model > to load a deffered Proxy. An alternative would be to add to the > services a mixin-interface which has a load() method and would just > load the proxy. > > To enable checking at Registry build time service-implementations > could be marked to be loaded at start-up. This could happen with an > extra attribute 'load-at-startup'. Again an alternative would be to > have start-levels (OSGi like). This would also help to start timers etc. --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org