You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by mc...@apache.org on 2002/08/22 15:55:31 UTC

cvs commit: jakarta-avalon-excalibur/meta/src/java/org/apache/excalibur/meta/info StageDescriptor.java

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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>