Return-Path: Delivered-To: apmail-avalon-cvs-archive@avalon.apache.org Received: (qmail 3439 invoked by uid 500); 28 Feb 2003 03:46:04 -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 3428 invoked by uid 500); 28 Feb 2003 03:46:04 -0000 Received: (qmail 3424 invoked from network); 28 Feb 2003 03:46:04 -0000 Received: from icarus.apache.org (208.185.179.13) by daedalus.apache.org with SMTP; 28 Feb 2003 03:46:04 -0000 Received: (qmail 99053 invoked by uid 1438); 28 Feb 2003 03:46:03 -0000 Date: 28 Feb 2003 03:46:03 -0000 Message-ID: <20030228034603.99052.qmail@icarus.apache.org> From: mcconnell@apache.org To: avalon-sandbox-cvs@apache.org Subject: cvs commit: avalon-sandbox/assembly/src/test/org/apache/avalon/playground/factory CustomAppliance.xinfo CustomAppliance.java CustomApplianceFactory.java CustomApplianceFactory.xinfo CustomComponent.xinfo X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N mcconnell 2003/02/27 19:46:03 Modified: assembly/src/test/org/apache/avalon/assembly TestBase.java assembly/src/test/org/apache/avalon/assembly/engine FactoryTestCase.java assembly/src/test/org/apache/avalon/playground SimpleComponent.xinfo assembly/src/test/org/apache/avalon/playground/factory CustomAppliance.java CustomApplianceFactory.java CustomApplianceFactory.xinfo CustomComponent.xinfo Added: assembly/src/test/org/apache/avalon/playground/factory CustomAppliance.xinfo Log: Addition of testcase validating the loading of a custom appliance component. Revision Changes Path 1.2 +1 -1 avalon-sandbox/assembly/src/test/org/apache/avalon/assembly/TestBase.java Index: TestBase.java =================================================================== RCS file: /home/cvs/avalon-sandbox/assembly/src/test/org/apache/avalon/assembly/TestBase.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- TestBase.java 27 Feb 2003 23:17:46 -0000 1.1 +++ TestBase.java 28 Feb 2003 03:46:03 -0000 1.2 @@ -39,7 +39,7 @@ protected void setUp() throws Exception { - setUpLogging( "WARN" ); + setUpLogging( "INFO" ); } protected void setUpLogging( String priority ) throws Exception 1.2 +3 -0 avalon-sandbox/assembly/src/test/org/apache/avalon/assembly/engine/FactoryTestCase.java Index: FactoryTestCase.java =================================================================== RCS file: /home/cvs/avalon-sandbox/assembly/src/test/org/apache/avalon/assembly/engine/FactoryTestCase.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- FactoryTestCase.java 27 Feb 2003 23:19:25 -0000 1.1 +++ FactoryTestCase.java 28 Feb 2003 03:46:03 -0000 1.2 @@ -61,13 +61,16 @@ { final String locator = "org.apache.avalon.assembly.lifecycle.context.DefaultContextualizer"; final String factory = "org.apache.avalon.playground.factory.CustomApplianceFactory"; + final String app = "org.apache.avalon.playground.factory.CustomAppliance"; final String classname = "org.apache.avalon.playground.factory.CustomComponent"; try { m_engine.register( locator ); m_engine.register( factory ); + m_engine.register( app ); m_engine.register( classname ); + Type type = m_engine.getRepository().getTypeManager().getType( classname ); Profile profile = m_engine.getRepository().getProfileManager().getProfile( type ); DefaultApplianceContext context = new DefaultApplianceContext( profile ); 1.8 +0 -1 avalon-sandbox/assembly/src/test/org/apache/avalon/playground/SimpleComponent.xinfo Index: SimpleComponent.xinfo =================================================================== RCS file: /home/cvs/avalon-sandbox/assembly/src/test/org/apache/avalon/playground/SimpleComponent.xinfo,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- SimpleComponent.xinfo 8 Feb 2003 23:30:46 -0000 1.7 +++ SimpleComponent.xinfo 28 Feb 2003 03:46:03 -0000 1.8 @@ -20,7 +20,6 @@ - 1.2 +10 -0 avalon-sandbox/assembly/src/test/org/apache/avalon/playground/factory/CustomAppliance.java Index: CustomAppliance.java =================================================================== RCS file: /home/cvs/avalon-sandbox/assembly/src/test/org/apache/avalon/playground/factory/CustomAppliance.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- CustomAppliance.java 27 Feb 2003 23:19:25 -0000 1.1 +++ CustomAppliance.java 28 Feb 2003 03:46:03 -0000 1.2 @@ -54,4 +54,14 @@ public class CustomAppliance extends DefaultAppliance { + //--------------------------------------------------------------------------- + // initialization + //--------------------------------------------------------------------------- + + public void initialize() throws Exception + { + super.initialize(); + getLogger().info( "custom appliance initialization" ); + } + } 1.2 +9 -0 avalon-sandbox/assembly/src/test/org/apache/avalon/playground/factory/CustomApplianceFactory.java Index: CustomApplianceFactory.java =================================================================== RCS file: /home/cvs/avalon-sandbox/assembly/src/test/org/apache/avalon/playground/factory/CustomApplianceFactory.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- CustomApplianceFactory.java 27 Feb 2003 23:19:25 -0000 1.1 +++ CustomApplianceFactory.java 28 Feb 2003 03:46:03 -0000 1.2 @@ -54,4 +54,13 @@ public class CustomApplianceFactory extends DefaultApplianceFactory { + //--------------------------------------------------------------------------- + // initialization + //--------------------------------------------------------------------------- + + public void initialize() throws Exception + { + super.initialize(); + getLogger().info( "custom appliance factory initialization" ); + } } 1.2 +3 -0 avalon-sandbox/assembly/src/test/org/apache/avalon/playground/factory/CustomApplianceFactory.xinfo Index: CustomApplianceFactory.xinfo =================================================================== RCS file: /home/cvs/avalon-sandbox/assembly/src/test/org/apache/avalon/playground/factory/CustomApplianceFactory.xinfo,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- CustomApplianceFactory.xinfo 27 Feb 2003 23:19:25 -0000 1.1 +++ CustomApplianceFactory.xinfo 28 Feb 2003 03:46:03 -0000 1.2 @@ -41,6 +41,9 @@ + 1.2 +22 -0 avalon-sandbox/assembly/src/test/org/apache/avalon/playground/factory/CustomComponent.xinfo Index: CustomComponent.xinfo =================================================================== RCS file: /home/cvs/avalon-sandbox/assembly/src/test/org/apache/avalon/playground/factory/CustomComponent.xinfo,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- CustomComponent.xinfo 27 Feb 2003 23:19:26 -0000 1.1 +++ CustomComponent.xinfo 28 Feb 2003 03:46:03 -0000 1.2 @@ -15,11 +15,33 @@ + + custom + + + + + + + 1.1 avalon-sandbox/assembly/src/test/org/apache/avalon/playground/factory/CustomAppliance.xinfo Index: CustomAppliance.xinfo =================================================================== custom-appliance-factory --------------------------------------------------------------------- To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org For additional commands, e-mail: cvs-help@avalon.apache.org