Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 95475 invoked from network); 26 Jun 2002 16:45:01 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by 209.66.108.5 with SMTP; 26 Jun 2002 16:45:01 -0000 Received: (qmail 5380 invoked by uid 97); 26 Jun 2002 16:45:05 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@jakarta.apache.org Received: (qmail 5348 invoked by uid 97); 26 Jun 2002 16:45:04 -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 5336 invoked by uid 98); 26 Jun 2002 16:45:03 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) X-Authentication-Warning: costinm.sfo.covalent.net: costin owned process doing -bs Date: Wed, 26 Jun 2002 09:43:58 -0700 (PDT) From: costinm@covalent.net X-X-Sender: costin@costinm.sfo.covalent.net To: Jakarta Commons Developers List Subject: Re: [discovery] Use of ClassLoader in ClassFinder In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: 209.66.108.5 1.6.2 0/1000/N X-Spam-Rating: 209.66.108.5 1.6.2 0/1000/N On Wed, 26 Jun 2002 rsitze@us.ibm.com wrote: > One heads up... The loader attempts to find a service using the context > class loader, and failing that it tries the SPI Class's class loader. This > is NOT equivalent to Class.getName(), which would pick up the ClassFinder's > class loader. > > I believe this may be more appropriate.. but then again the SPI's Class > Loader is more likely to be equivalent to the context class loader... > thoughts? What is SPI ? Sorry, too many acronyms. It is likely that commons-discovery will be in the parent class loader, while the discovered packages in child loaders. Probably the 'right' thing to do is also try the class loader of the caller ( it is possible to get access to the call stack - with some hacks - like we do in c-logging). Costin -- To unsubscribe, e-mail: For additional commands, e-mail: