Return-Path: Delivered-To: apmail-avalon-dev-archive@www.apache.org Received: (qmail 44441 invoked from network); 22 Jan 2004 03:51:50 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 22 Jan 2004 03:51:50 -0000 Received: (qmail 21310 invoked by uid 500); 22 Jan 2004 03:51:31 -0000 Delivered-To: apmail-avalon-dev-archive@avalon.apache.org Received: (qmail 21034 invoked by uid 500); 22 Jan 2004 03:51:30 -0000 Mailing-List: contact dev-help@avalon.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 dev@avalon.apache.org Received: (qmail 21021 invoked from network); 22 Jan 2004 03:51:29 -0000 Received: from unknown (HELO localhost.localdomain) (129.41.18.137) by daedalus.apache.org with SMTP; 22 Jan 2004 03:51:29 -0000 Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by localhost.localdomain (8.12.8/8.12.8) with ESMTP id i0M3pYJB015582 for ; Wed, 21 Jan 2004 19:51:39 -0800 From: Niclas Hedhman Organization: Private To: dev@avalon.apache.org Subject: Bootstrapping of Merlin Date: Wed, 21 Jan 2004 19:51:33 -0800 User-Agent: KMail/1.5 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200401211951.33250.niclas@hedhman.org> 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 Stephen gave me this important piece of overview, that I would like to share. 1. user creates a new DefaultInitialContext - this provides the micro-bootstrapping facility 2. user creates an Artifact reference 3. user creates a new DefaultBuilder that uses the initial context and artifact 4. user request the Builder to build a factory - builder looks at the artifact and tries to locate meta data about the classloader hierachy that it needs - builder pulls in all of the dependent jars and creates the classloader hierachy - builder instantiates a factory using the new classloader and returns this to the user 5. user gets the factory 6. user requests from the factory the default criteria (a map of default values) 7. user parameterizes criteria (setting this and that) 8. user requests the factory to create a new instance using the criteria 9. done - merlin is running (or whatever the artifact is referring to) Niclas --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org For additional commands, e-mail: dev-help@avalon.apache.org