Return-Path: Delivered-To: apmail-jakarta-avalon-dev-archive@apache.org Received: (qmail 70985 invoked from network); 30 Jan 2003 16:16:53 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 30 Jan 2003 16:16:53 -0000 Received: (qmail 25814 invoked by uid 97); 30 Jan 2003 16:18:20 -0000 Delivered-To: qmlist-jakarta-archive-avalon-dev@nagoya.betaversion.org Received: (qmail 25807 invoked from network); 30 Jan 2003 16:18:20 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 30 Jan 2003 16:18:20 -0000 Received: (qmail 70117 invoked by uid 500); 30 Jan 2003 16:16:39 -0000 Mailing-List: contact avalon-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Avalon Developers List" Reply-To: "Avalon Developers List" Delivered-To: mailing list avalon-dev@jakarta.apache.org Received: (qmail 70092 invoked from network); 30 Jan 2003 16:16:39 -0000 Received: from mail.s-und-n.de (212.8.217.2) by daedalus.apache.org with SMTP; 30 Jan 2003 16:16:39 -0000 Received: from mail.s-und-n.de (localhost [127.0.0.1]) by mail2.s-und-n.de (postfix) with ESMTP id A0E299A270 for ; Thu, 30 Jan 2003 17:16:40 +0100 (CET) Received: from notes.sundn.de (ntsrv5.sundn.de [10.10.2.10]) by mail.s-und-n.de (postfix) with ESMTP id 2C8EA99B8F for ; Thu, 30 Jan 2003 17:16:40 +0100 (CET) Received: from hw0386 ([10.10.2.37]) by notes.sundn.de (Lotus Domino Release 5.0.8) with SMTP id 2003013017163959:36102 ; Thu, 30 Jan 2003 17:16:39 +0100 From: "Carsten Ziegeler" To: "Avalon Developers List" Subject: RE: Allows Source objects lifecycle methods? Date: Thu, 30 Jan 2003 17:16:46 +0100 Message-ID: MIME-Version: 1.0 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-reply-to: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal X-MIMETrack: Itemize by SMTP Server on PBSN1/Systeme und Netzwerke(Release 5.0.8 |June 18, 2001) at 30.01.2003 17:16:39, Serialize by Router on PBSN1/Systeme und Netzwerke(Release 5.0.8 |June 18, 2001) at 30.01.2003 17:16:40, Serialize complete at 30.01.2003 17:16:40 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Stephan Michels wrote: > > Hi, > > I want to ask about the intention of Source objects. Some time ago, > the Source allows to use lifecycle methods like configure, compose etc. > But the execution part in the SourceResolverImpl seems to be droped. > > This goes fine for me, but the javadoc told some other things: > * When the Source object is no longer needed > * it must be released using the {@link SourceResolver}. This is very > similar to > * looking up components from a ServiceSelector. > * In fact a source object can implement most lifecycle interfaces > * like Composable, Initializable, Disposable etc. > > So now I ask for a clarification? > The docs are not that upto-date, but basically a Source can implement Lifecycle methods - but it's no longer the concern of the SourceResolverImpl but the concern of the corresponding source factory. So, if your Source should use lifecycle methods, you have to add this support in the corresponding factory. The factory is invoked for creating and for destroying a source object, so you full control over the source object. HTH Carsten --------------------------------------------------------------------- To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: avalon-dev-help@jakarta.apache.org