Return-Path: Delivered-To: apmail-avalon-cvs-archive@avalon.apache.org Received: (qmail 83465 invoked by uid 500); 22 Jun 2003 13:57:59 -0000 Mailing-List: contact cvs-help@avalon.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Avalon CVS List" Reply-To: "Avalon Developers List" Delivered-To: mailing list cvs@avalon.apache.org Received: (qmail 83454 invoked by uid 500); 22 Jun 2003 13:57:59 -0000 Received: (qmail 83451 invoked from network); 22 Jun 2003 13:57:59 -0000 Received: from icarus.apache.org (208.185.179.13) by daedalus.apache.org with SMTP; 22 Jun 2003 13:57:59 -0000 Received: (qmail 53800 invoked by uid 1438); 22 Jun 2003 13:57:59 -0000 Date: 22 Jun 2003 13:57:59 -0000 Message-ID: <20030622135759.53799.qmail@icarus.apache.org> From: mcconnell@apache.org To: avalon-sandbox-cvs@apache.org Subject: cvs commit: avalon-sandbox/merlin/merlin-platform/xdocs/starting/examples/james block.xml X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N mcconnell 2003/06/22 06:57:59 Modified: merlin/merlin-core/src/java/org/apache/avalon/merlin/block/impl StandardBlockLoader.java XMLContainerCreator.java merlin/merlin-platform/src/config kernel-service.xml kernel.xml merlin/merlin-platform/tutorials/composition/src/config block.xml block2.xml merlin/merlin-platform/tutorials/composition/src/config/application block.xml merlin/merlin-platform/tutorials/includes/src/config block.xml include.xml merlin/merlin-platform/xdocs/meta/model/block index.xml merlin/merlin-platform/xdocs/meta/model/block/container includes.xml index.xml navigation.xml merlin/merlin-platform/xdocs/meta/model/block/container/components navigation.xml merlin/merlin-platform/xdocs/meta/model/block/container/components/categories navigation.xml merlin/merlin-platform/xdocs/meta/model/block/container/components/context navigation.xml merlin/merlin-platform/xdocs/meta/model/block/container/components/context/entry navigation.xml merlin/merlin-platform/xdocs/meta/model/block/container/components/parameters navigation.xml merlin/merlin-platform/xdocs/meta/model/block/container/engine extensions.xml index.xml navigation.xml merlin/merlin-platform/xdocs/meta/model/block/container/engine/classpath navigation.xml merlin/merlin-platform/xdocs/meta/model/block/container/engine/classpath/repository navigation.xml merlin/merlin-platform/xdocs/meta/model/block/container/include index.xml navigation.xml source.xml merlin/merlin-platform/xdocs/meta/model/block/container/include/targets navigation.xml merlin/merlin-platform/xdocs/starting/advanced composite.xml includes.xml merlin/merlin-platform/xdocs/starting/examples/james block.xml Log: Migrate from to (this commit is dedicated to Leo). Revision Changes Path 1.16 +8 -2 avalon-sandbox/merlin/merlin-core/src/java/org/apache/avalon/merlin/block/impl/StandardBlockLoader.java Index: StandardBlockLoader.java =================================================================== RCS file: /home/cvs/avalon-sandbox/merlin/merlin-core/src/java/org/apache/avalon/merlin/block/impl/StandardBlockLoader.java,v retrieving revision 1.15 retrieving revision 1.16 diff -u -r1.15 -r1.16 --- StandardBlockLoader.java 21 Jun 2003 17:10:02 -0000 1.15 +++ StandardBlockLoader.java 22 Jun 2003 13:57:56 -0000 1.16 @@ -320,8 +320,14 @@ // the block in a seperate thread?) // + Configuration classLoaderConfig = implementation.getChild( "classloader", false ); + if( classLoaderConfig == null ) + { + classLoaderConfig = implementation.getChild( "engine" ); + } + EngineClassLoader engine = - createEngine( implementation.getChild( "engine" ), path ); + createEngine( classLoaderConfig, path ); Thread.currentThread().setContextClassLoader( engine ); // 1.6 +55 -3 avalon-sandbox/merlin/merlin-core/src/java/org/apache/avalon/merlin/block/impl/XMLContainerCreator.java Index: XMLContainerCreator.java =================================================================== RCS file: /home/cvs/avalon-sandbox/merlin/merlin-core/src/java/org/apache/avalon/merlin/block/impl/XMLContainerCreator.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- XMLContainerCreator.java 18 Jun 2003 11:28:12 -0000 1.5 +++ XMLContainerCreator.java 22 Jun 2003 13:57:56 -0000 1.6 @@ -215,7 +215,7 @@ * or <container> directive. * * @param base the base url - * @param parent the classloader + * @param engine the parent classloader * @param config the implementation or container directive * @param targets a set of relative supplimentary configuration targets * @return the component profile set @@ -555,6 +555,7 @@ DependencyDescriptor[] dependencies = getBlockLogicalDependencies( config.getChild( "dependencies" ) ); + verifyDependencyImport( parent, dependencies ); // // create the logical services @@ -562,6 +563,7 @@ VirtualService[] services = getVirtualServices( config.getChild( "services" ) ); + verifyServiceExport( parent, services ); // // create the container descriptor @@ -582,6 +584,47 @@ } } + private void verifyDependencyImport( EngineClassLoader parent, DependencyDescriptor[] dependencies ) + throws ContainerException + { + for( int i=0; i - + - + - - - - - - - - - - - - 2 - 1000 - 250 - - - + + 2 + 1000 + 250 + 1.3 +12 -23 avalon-sandbox/merlin/merlin-platform/src/config/kernel.xml Index: kernel.xml =================================================================== RCS file: /home/cvs/avalon-sandbox/merlin/merlin-platform/src/config/kernel.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- kernel.xml 15 Jun 2003 18:16:01 -0000 1.2 +++ kernel.xml 22 Jun 2003 13:57:56 -0000 1.3 @@ -6,12 +6,12 @@ 1. a system descriptor that declares the hostname of this machine 2. a logging descriptor for establishment of the logging subsystem - 3. a logging catagories descriptor that establishes logging priority + 3. a catagories descriptor that establishes logging priority for the kernel - 4. an engine descriptor used to configure the pool + 4. the pool configuration -Once a kernel is established the controlling application supplies one or block -configurations to the kernel for deployment. +Once a kernel is established the controlling application supplies a root +block configurations to the kernel for deployment. --> @@ -21,6 +21,7 @@ + @@ -35,27 +36,15 @@ - + - - - - - - - - - - - - - - 2 - 1000 - 250 - + - + + 2 + 1000 + 250 + 1.2 +2 -2 avalon-sandbox/merlin/merlin-platform/tutorials/composition/src/config/block.xml Index: block.xml =================================================================== RCS file: /home/cvs/avalon-sandbox/merlin/merlin-platform/tutorials/composition/src/config/block.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- block.xml 10 Jun 2003 02:12:19 -0000 1.1 +++ block.xml 22 Jun 2003 13:57:57 -0000 1.2 @@ -7,13 +7,13 @@ - + - + 1.2 +2 -2 avalon-sandbox/merlin/merlin-platform/tutorials/composition/src/config/block2.xml Index: block2.xml =================================================================== RCS file: /home/cvs/avalon-sandbox/merlin/merlin-platform/tutorials/composition/src/config/block2.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- block2.xml 10 Jun 2003 02:12:19 -0000 1.1 +++ block2.xml 22 Jun 2003 13:57:57 -0000 1.2 @@ -7,7 +7,7 @@ - + @@ -16,7 +16,7 @@ - + 1.2 +2 -2 avalon-sandbox/merlin/merlin-platform/tutorials/composition/src/config/application/block.xml Index: block.xml =================================================================== RCS file: /home/cvs/avalon-sandbox/merlin/merlin-platform/tutorials/composition/src/config/application/block.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- block.xml 10 Jun 2003 02:12:19 -0000 1.1 +++ block.xml 22 Jun 2003 13:57:57 -0000 1.2 @@ -12,13 +12,13 @@ - + - + 1.3 +2 -2 avalon-sandbox/merlin/merlin-platform/tutorials/includes/src/config/block.xml Index: block.xml =================================================================== RCS file: /home/cvs/avalon-sandbox/merlin/merlin-platform/tutorials/includes/src/config/block.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- block.xml 15 Jun 2003 17:45:32 -0000 1.2 +++ block.xml 22 Jun 2003 13:57:57 -0000 1.3 @@ -7,13 +7,13 @@ - + - + 1.2 +2 -2 avalon-sandbox/merlin/merlin-platform/tutorials/includes/src/config/include.xml Index: include.xml =================================================================== RCS file: /home/cvs/avalon-sandbox/merlin/merlin-platform/tutorials/includes/src/config/include.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- include.xml 10 Jun 2003 02:12:24 -0000 1.1 +++ include.xml 22 Jun 2003 13:57:57 -0000 1.2 @@ -7,13 +7,13 @@ - + - + 1.2 +2 -2 avalon-sandbox/merlin/merlin-platform/xdocs/meta/model/block/index.xml Index: index.xml =================================================================== RCS file: /home/cvs/avalon-sandbox/merlin/merlin-platform/xdocs/meta/model/block/index.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- index.xml 10 Jun 2003 02:14:18 -0000 1.1 +++ index.xml 22 Jun 2003 13:57:57 -0000 1.2 @@ -53,13 +53,13 @@ - + - + 1.2 +2 -2 avalon-sandbox/merlin/merlin-platform/xdocs/meta/model/block/container/includes.xml Index: includes.xml =================================================================== RCS file: /home/cvs/avalon-sandbox/merlin/merlin-platform/xdocs/meta/model/block/container/includes.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- includes.xml 10 Jun 2003 02:14:19 -0000 1.1 +++ includes.xml 22 Jun 2003 13:57:57 -0000 1.2 @@ -71,13 +71,13 @@ - + - + 1.3 +4 -6 avalon-sandbox/merlin/merlin-platform/xdocs/meta/model/block/container/index.xml Index: index.xml =================================================================== RCS file: /home/cvs/avalon-sandbox/merlin/merlin-platform/xdocs/meta/model/block/container/index.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- index.xml 15 Jun 2003 17:43:23 -0000 1.2 +++ index.xml 22 Jun 2003 13:57:57 -0000 1.3 @@ -31,11 +31,9 @@ - + @@ -122,13 +120,13 @@ will execute within --> - + - + + - - - - - - - + + + + + + + + + + + - - - - - - - - - - + + @@ -83,18 +90,85 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + file + + + OBJECT + + + SYNCHRONOUS + ASYNCHRONOUS + CACHE + + + + + file + + + STREAM + + + SYNCHRONOUS + ASYNCHRONOUS + CACHE + + + + + + + + + + + 300000 + 30 + + postmaster@localhost - - - - - - + + localhost + + + + + + - - - - default - 5 - false - 100 - 20 - 20 - - - - - - - - - - file - - - OBJECT - - - SYNCHRONOUS - ASYNCHRONOUS - CACHE - - - - - file - - - STREAM - - - SYNCHRONOUS - ASYNCHRONOUS - CACHE - - - - - - - - - - 300000 - 30 - - - - - - - - - - - - - - - - -
ElementOccuranceDescription
engine0..1classloader0..1 - An engine is an extended classloader. A block implementation - may have at most one engine within which additional resources - (jar files, etc.) may be declared. + A block implementation may have at most one classloader.