avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcconn...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/meta/src/java/org/apache/excalibur/meta/info StageDescriptor.java
Date Thu, 22 Aug 2002 13:55:31 GMT
mcconnell    2002/08/22 06:55:31

  Added:       meta/src/java/org/apache/excalibur/meta/info
                        StageDescriptor.java
  Log:
  Housekeeping
  
  Revision  Changes    Path
  1.1                  jakarta-avalon-excalibur/meta/src/java/org/apache/excalibur/meta/info/StageDescriptor.java
  
  Index: StageDescriptor.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.meta.info;
  
  import java.util.Properties;
  
  /**
   * A descriptor that describes a name and inteface of a lifecycle stage.
   *
   * @author <a href="mailto:mcconnell@apache.org">Stephen McConnell</a>
   * @version $Revision: 1.1 $ $Date: 2002/08/22 13:55:31 $
   */
  public class StageDescriptor extends Descriptor
  {
  
      /**
       * The interface that represents the client view of the lifecycle stage.
       */
      private final ReferenceDescriptor m_reference;
  
      /**
       * Constructor a stage descriptor without attributes.
       * @param reference the stage interface
       * @exception NullPointerException if the reference argument is null
       */
      public StageDescriptor( final ReferenceDescriptor reference )
        throws NullPointerException
      {
          this( reference, null );
      }
  
      /**
       * Constructor a stage descriptor with attributes.
       * @param reference the stage interface
       * @param attributes a set of attribute values to associated with the stage
       * @exception NullPointerException if the reference argument is null
       */
      public StageDescriptor( final ReferenceDescriptor reference,
                              final Properties attributes )
        throws NullPointerException
      {
          super( attributes );
  
          if( null == reference )
          {
              throw new NullPointerException( "reference" );
          }
          m_reference = reference;
      }
  
      /**
       * Return the version interface reference.
       *
       * @return the version interface reference.
       */
      public ReferenceDescriptor getReference()
      {
          return m_reference;
      }
  
  }
  
  
  

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


Mime
View raw message