You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by do...@apache.org on 2002/11/10 13:39:05 UTC

cvs commit: jakarta-avalon-excalibur/fortress/src/test/org/apache/excalibur/fortress/test/data BaseRole.java Component1.java Component2.java Component3.java Component4.java Role1.java Role2.java Role3.java Role4.java test1.roles test1.xconf test1.xlog

donaldp     2002/11/10 04:39:05

  Added:       fortress/src/test/org/apache/excalibur/fortress/test/data
                        BaseRole.java Component1.java Component2.java
                        Component3.java Component4.java Role1.java
                        Role2.java Role3.java Role4.java test1.roles
                        test1.xconf test1.xlog
  Log:
  Add some test data
  
  Revision  Changes    Path
  1.1                  jakarta-avalon-excalibur/fortress/src/test/org/apache/excalibur/fortress/test/data/BaseRole.java
  
  Index: BaseRole.java
  ===================================================================
  /*
   * Copyright (C) The Apache Software Foundation. All rights reserved.
   *
   * This software is published under the terms of the Apache Software License
   * version 1.1, a copy of which has been included with this distribution in
   * the LICENSE.txt file.
   */
  package org.apache.excalibur.fortress.test.data;
  
  /**
   *
   * @author <a href="mailto:peter at apache.org">Peter Donald</a>
   * @version $Revision: 1.1 $ $Date: 2002/11/10 12:39:04 $
   */
  public interface BaseRole
  {
      long getID();
  }
  
  
  
  1.1                  jakarta-avalon-excalibur/fortress/src/test/org/apache/excalibur/fortress/test/data/Component1.java
  
  Index: Component1.java
  ===================================================================
  /*
   * Copyright (C) The Apache Software Foundation. All rights reserved.
   *
   * This software is published under the terms of the Apache Software License
   * version 1.1, a copy of which has been included with this distribution in
   * the LICENSE.txt file.
   */
  package org.apache.excalibur.fortress.test.data;
  
  /**
   *
   * @author <a href="mailto:peter at apache.org">Peter Donald</a>
   * @version $Revision: 1.1 $ $Date: 2002/11/10 12:39:04 $
   */
  public class Component1
      implements Role1
  {
      public long getID()
      {
          return hashCode();
      }
  }
  
  
  
  1.1                  jakarta-avalon-excalibur/fortress/src/test/org/apache/excalibur/fortress/test/data/Component2.java
  
  Index: Component2.java
  ===================================================================
  /*
   * Copyright (C) The Apache Software Foundation. All rights reserved.
   *
   * This software is published under the terms of the Apache Software License
   * version 1.1, a copy of which has been included with this distribution in
   * the LICENSE.txt file.
   */
  package org.apache.excalibur.fortress.test.data;
  
  /**
   *
   * @author <a href="mailto:peter at apache.org">Peter Donald</a>
   * @version $Revision: 1.1 $ $Date: 2002/11/10 12:39:04 $
   */
  public class Component2
      implements Role2
  {
      public long getID()
      {
          return hashCode();
      }
  }
  
  
  
  1.1                  jakarta-avalon-excalibur/fortress/src/test/org/apache/excalibur/fortress/test/data/Component3.java
  
  Index: Component3.java
  ===================================================================
  /*
   * Copyright (C) The Apache Software Foundation. All rights reserved.
   *
   * This software is published under the terms of the Apache Software License
   * version 1.1, a copy of which has been included with this distribution in
   * the LICENSE.txt file.
   */
  package org.apache.excalibur.fortress.test.data;
  
  /**
   *
   * @author <a href="mailto:peter at apache.org">Peter Donald</a>
   * @version $Revision: 1.1 $ $Date: 2002/11/10 12:39:04 $
   */
  public class Component3
      implements Role3
  {
      public long getID()
      {
          return hashCode();
      }
  }
  
  
  
  1.1                  jakarta-avalon-excalibur/fortress/src/test/org/apache/excalibur/fortress/test/data/Component4.java
  
  Index: Component4.java
  ===================================================================
  /*
   * Copyright (C) The Apache Software Foundation. All rights reserved.
   *
   * This software is published under the terms of the Apache Software License
   * version 1.1, a copy of which has been included with this distribution in
   * the LICENSE.txt file.
   */
  package org.apache.excalibur.fortress.test.data;
  
  /**
   *
   * @author <a href="mailto:peter at apache.org">Peter Donald</a>
   * @version $Revision: 1.1 $ $Date: 2002/11/10 12:39:04 $
   */
  public class Component4
      implements Role4
  {
      public long getID()
      {
          return hashCode();
      }
  }
  
  
  
  1.1                  jakarta-avalon-excalibur/fortress/src/test/org/apache/excalibur/fortress/test/data/Role1.java
  
  Index: Role1.java
  ===================================================================
  /*
   * Copyright (C) The Apache Software Foundation. All rights reserved.
   *
   * This software is published under the terms of the Apache Software License
   * version 1.1, a copy of which has been included with this distribution in
   * the LICENSE.txt file.
   */
  package org.apache.excalibur.fortress.test.data;
  
  /**
   *
   * @author <a href="mailto:peter at apache.org">Peter Donald</a>
   * @version $Revision: 1.1 $ $Date: 2002/11/10 12:39:04 $
   */
  public interface Role1
      extends BaseRole
  {
      String ROLE = Role1.class.getName();
  }
  
  
  
  1.1                  jakarta-avalon-excalibur/fortress/src/test/org/apache/excalibur/fortress/test/data/Role2.java
  
  Index: Role2.java
  ===================================================================
  /*
   * Copyright (C) The Apache Software Foundation. All rights reserved.
   *
   * This software is published under the terms of the Apache Software License
   * version 1.1, a copy of which has been included with this distribution in
   * the LICENSE.txt file.
   */
  package org.apache.excalibur.fortress.test.data;
  
  /**
   *
   * @author <a href="mailto:peter at apache.org">Peter Donald</a>
   * @version $Revision: 1.1 $ $Date: 2002/11/10 12:39:04 $
   */
  public interface Role2
      extends BaseRole
  {
      String ROLE = Role2.class.getName();
  }
  
  
  
  1.1                  jakarta-avalon-excalibur/fortress/src/test/org/apache/excalibur/fortress/test/data/Role3.java
  
  Index: Role3.java
  ===================================================================
  /*
   * Copyright (C) The Apache Software Foundation. All rights reserved.
   *
   * This software is published under the terms of the Apache Software License
   * version 1.1, a copy of which has been included with this distribution in
   * the LICENSE.txt file.
   */
  package org.apache.excalibur.fortress.test.data;
  
  /**
   *
   * @author <a href="mailto:peter at apache.org">Peter Donald</a>
   * @version $Revision: 1.1 $ $Date: 2002/11/10 12:39:04 $
   */
  public interface Role3
      extends BaseRole
  {
      String ROLE = Role3.class.getName();
  }
  
  
  
  1.1                  jakarta-avalon-excalibur/fortress/src/test/org/apache/excalibur/fortress/test/data/Role4.java
  
  Index: Role4.java
  ===================================================================
  /*
   * Copyright (C) The Apache Software Foundation. All rights reserved.
   *
   * This software is published under the terms of the Apache Software License
   * version 1.1, a copy of which has been included with this distribution in
   * the LICENSE.txt file.
   */
  package org.apache.excalibur.fortress.test.data;
  
  /**
   *
   * @author <a href="mailto:peter at apache.org">Peter Donald</a>
   * @version $Revision: 1.1 $ $Date: 2002/11/10 12:39:04 $
   */
  public interface Role4
      extends BaseRole
  {
      String ROLE = Role4.class.getName();
  }
  
  
  
  1.1                  jakarta-avalon-excalibur/fortress/src/test/org/apache/excalibur/fortress/test/data/test1.roles
  
  Index: test1.roles
  ===================================================================
  <test>
      <role name="org.apache.excalibur.fortress.test.data.Role1">
          <component shorthand="component1"
              class="org.apache.excalibur.fortress.test.data.Component1"
              handler="org.apache.excalibur.fortress.handler.ThreadSafeComponentHandler"/>
      </role>
      <role name="org.apache.excalibur.fortress.test.data.Role2">
          <component shorthand="component2"
              class="org.apache.excalibur.fortress.test.data.Component2"
              handler="org.apache.excalibur.fortress.handler.ThreadSafeComponentHandler"/>
      </role>
      <role name="org.apache.excalibur.fortress.test.data.Role3">
          <component shorthand="component3"
              class="org.apache.excalibur.fortress.test.data.Component3"
              handler="org.apache.excalibur.fortress.handler.ThreadSafeComponentHandler"/>
      </role>
      <role name="org.apache.excalibur.fortress.test.data.Role4">
          <component shorthand="component4"
              class="org.apache.excalibur.fortress.test.data.Component4"
              handler="org.apache.excalibur.fortress.handler.ThreadSafeComponentHandler"/>
      </role>
  </test>
  
  
  
  
  1.1                  jakarta-avalon-excalibur/fortress/src/test/org/apache/excalibur/fortress/test/data/test1.xconf
  
  Index: test1.xconf
  ===================================================================
  <test>
      <component id="component1"
          class="org.apache.excalibur.fortress.test.data.Component1"
          role="org.apache.excalibur.fortress.test.data.Role1"
          handler="org.apache.excalibur.fortress.handler.ThreadSafeComponentHandler"
          logger="component1"
          activation="startup"/>
      <component id="component2"
          class="org.apache.excalibur.fortress.test.data.Component2"
          role="org.apache.excalibur.fortress.test.data.Role2"
          handler="org.apache.excalibur.fortress.handler.PoolableComponentHandler"
          logger="component2"
          activation="startup"/>
      <component id="component3"
          class="org.apache.excalibur.fortress.test.data.Component3"
          role="org.apache.excalibur.fortress.test.data.Role3"
          handler="org.apache.excalibur.fortress.handler.PerThreadComponentHandler"
          logger="component3"
          activation="startup"/>
      <component id="component4"
          class="org.apache.excalibur.fortress.test.data.Component4"
          role="org.apache.excalibur.fortress.test.data.Role4"
          handler="org.apache.excalibur.fortress.handler.FactoryComponentHandler"
          logger="component4"
          activation="startup"/>
  </test>
  
  
  
  
  1.1                  jakarta-avalon-excalibur/fortress/src/test/org/apache/excalibur/fortress/test/data/test1.xlog
  
  Index: test1.xlog
  ===================================================================
  <logkit>
      <factories>
          <factory type="file" class="org.apache.avalon.excalibur.logger.factory.FileTargetFactory"/>
      </factories>
  
      <targets>
          <file id="root">
              <filename>container-test.log</filename>
              <format type="extended">
              %7.7{priority} %5.5{time}   [%8.8{category}] (%{context}): %{message}\n%{throwable}
          </format>
          </file>
      </targets>
  
      <categories>
          <category name="test" log-level="INFO">
              <log-target id-ref="root"/>
          </category>
          <category name="" log-level="INFO">
              <log-target id-ref="root"/>
          </category>
      </categories>
  </logkit>
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>