avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcconn...@apache.org
Subject cvs commit: avalon-sandbox/merlin/assembly/src/test/org/apache/avalon/assembly/model/testd D.java TestD.java TestD.xinfo
Date Thu, 03 Jul 2003 04:33:36 GMT
mcconnell    2003/07/02 21:33:36

  Added:       merlin/assembly/src/test/org/apache/avalon/assembly/model/testa
                        A.java TestA.java TestA.xinfo
               merlin/assembly/src/test/org/apache/avalon/assembly/model/testb
                        B.java TestB.java TestB.xinfo
               merlin/assembly/src/test/org/apache/avalon/assembly/model/testc
                        C.java TestC.java TestC.xinfo
               merlin/assembly/src/test/org/apache/avalon/assembly/model/testd
                        D.java TestD.java TestD.xinfo
  Log:
  Test-case resources supporting the assembly meta-model classes.
  
  Revision  Changes    Path
  1.1                  avalon-sandbox/merlin/assembly/src/test/org/apache/avalon/assembly/model/testa/A.java
  
  Index: A.java
  ===================================================================
  
  
  package org.apache.avalon.assembly.model.testa;
  
  public interface A
  {
  }
  
  
  
  1.1                  avalon-sandbox/merlin/assembly/src/test/org/apache/avalon/assembly/model/testa/TestA.java
  
  Index: TestA.java
  ===================================================================
  
  
  package org.apache.avalon.assembly.model.testa;
  
  import org.apache.avalon.framework.activity.Initializable;
  import org.apache.avalon.framework.configuration.Configuration;
  import org.apache.avalon.framework.logger.AbstractLogEnabled;
  
  public class TestA extends AbstractLogEnabled
    implements Initializable, A
  {
      public void initialize() throws Exception
      {
          getLogger().info( "hello" );
      }
  }
  
  
  
  1.1                  avalon-sandbox/merlin/assembly/src/test/org/apache/avalon/assembly/model/testa/TestA.xinfo
  
  Index: TestA.xinfo
  ===================================================================
  
  <type>
    <info>
      <name>component-a</name>
      <lifestyle>singleton</lifestyle>
    </info>
    <services>
      <service type="org.apache.avalon.assembly.model.testa.A"/>
    </services>
  </type>
  
  
  
  1.1                  avalon-sandbox/merlin/assembly/src/test/org/apache/avalon/assembly/model/testb/B.java
  
  Index: B.java
  ===================================================================
  
  
  package org.apache.avalon.assembly.model.testb;
  
  public interface B
  {
  }
  
  
  
  1.1                  avalon-sandbox/merlin/assembly/src/test/org/apache/avalon/assembly/model/testb/TestB.java
  
  Index: TestB.java
  ===================================================================
  
  
  package org.apache.avalon.assembly.model.testb;
  
  import org.apache.avalon.framework.activity.Initializable;
  import org.apache.avalon.framework.configuration.Configuration;
  import org.apache.avalon.framework.logger.AbstractLogEnabled;
  
  public class TestB extends AbstractLogEnabled
    implements Initializable, B
  {
      public void initialize() throws Exception
      {
          getLogger().info( "hello from B" );
      }
  }
  
  
  
  1.1                  avalon-sandbox/merlin/assembly/src/test/org/apache/avalon/assembly/model/testb/TestB.xinfo
  
  Index: TestB.xinfo
  ===================================================================
  
  <type>
    <info>
      <name>componet-b</name>
      <lifestyle>singleton</lifestyle>
    </info>
    <services>
      <service type="org.apache.avalon.assembly.model.testb.B"/>
    </services>
  </type>
  
  
  
  1.1                  avalon-sandbox/merlin/assembly/src/test/org/apache/avalon/assembly/model/testc/C.java
  
  Index: C.java
  ===================================================================
  
  
  package org.apache.avalon.assembly.model.testc;
  
  public interface C
  {
  }
  
  
  
  1.1                  avalon-sandbox/merlin/assembly/src/test/org/apache/avalon/assembly/model/testc/TestC.java
  
  Index: TestC.java
  ===================================================================
  
  
  package org.apache.avalon.assembly.model.testc;
  
  import org.apache.avalon.framework.activity.Initializable;
  import org.apache.avalon.framework.configuration.Configuration;
  import org.apache.avalon.framework.logger.AbstractLogEnabled;
  import org.apache.avalon.framework.logger.Logger;
  import org.apache.avalon.framework.service.Serviceable;
  import org.apache.avalon.framework.service.ServiceManager;
  import org.apache.avalon.framework.service.ServiceException;
  
  public class TestC extends AbstractLogEnabled
    implements Initializable, C
  {
      public void initialize() throws Exception
      {
          getLogger().info( "hello from C" );
      }
  
      public void service( ServiceManager manager ) throws ServiceException
      {
          getLogger().info( "service stage" );
          Logger logger = getLogger().getChildLogger( "service" );
          logger.info( "lookup A" );
          manager.lookup( "a" );
          logger.info( "lookup B" );
          manager.lookup( "b" );
          logger.info( "ok" );
      }
  }
  
  
  
  1.1                  avalon-sandbox/merlin/assembly/src/test/org/apache/avalon/assembly/model/testc/TestC.xinfo
  
  Index: TestC.xinfo
  ===================================================================
  
  <type>
    <info>
      <name>component-c</name>
      <lifestyle>singleton</lifestyle>
    </info>
    <services>
      <service type="org.apache.avalon.assembly.model.testc.C"/>
    </services>
    <dependencies>
      <dependency type="org.apache.avalon.assembly.model.testa.A" key="a"/>
      <dependency type="org.apache.avalon.assembly.model.testb.B" key="b"/>
    </dependencies>
  
  </type>
  
  
  
  1.1                  avalon-sandbox/merlin/assembly/src/test/org/apache/avalon/assembly/model/testd/D.java
  
  Index: D.java
  ===================================================================
  
  
  package org.apache.avalon.assembly.model.testd;
  
  public interface D
  {
  }
  
  
  
  1.1                  avalon-sandbox/merlin/assembly/src/test/org/apache/avalon/assembly/model/testd/TestD.java
  
  Index: TestD.java
  ===================================================================
  
  
  package org.apache.avalon.assembly.model.testd;
  
  import org.apache.avalon.framework.activity.Initializable;
  import org.apache.avalon.framework.configuration.Configuration;
  import org.apache.avalon.framework.logger.AbstractLogEnabled;
  import org.apache.avalon.framework.logger.Logger;
  import org.apache.avalon.framework.service.Serviceable;
  import org.apache.avalon.framework.service.ServiceManager;
  import org.apache.avalon.framework.service.ServiceException;
  
  public class TestD extends AbstractLogEnabled
    implements Initializable, D
  {
      public void initialize() throws Exception
      {
          getLogger().info( "hello from D" );
      }
  
      public void service( ServiceManager manager ) throws ServiceException
      {
          getLogger().info( "service stage" );
          Logger logger = getLogger().getChildLogger( "service" );
          logger.info( "lookup A" );
          manager.lookup( "a" );
          logger.info( "ok" );
      }
  }
  
  
  
  1.1                  avalon-sandbox/merlin/assembly/src/test/org/apache/avalon/assembly/model/testd/TestD.xinfo
  
  Index: TestD.xinfo
  ===================================================================
  
  <type>
    <info>
      <name>component-d</name>
      <lifestyle>singleton</lifestyle>
    </info>
    <services>
      <service type="org.apache.avalon.assembly.model.testd.D"/>
    </services>
    <dependencies>
      <dependency type="org.apache.avalon.assembly.model.testa.A" key="a"/>
    </dependencies>
  </type>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org


Mime
View raw message