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/meta/src/java/org/apache/avalon/meta/info DependencyDescriptor.java
Date Sat, 30 Nov 2002 14:46:24 GMT
mcconnell    2002/11/30 06:46:24

  Modified:    meta/src/java/org/apache/avalon/meta/info
                        DependencyDescriptor.java
  Log:
  Addition of convinience constructuor.
  
  Revision  Changes    Path
  1.3       +12 -1     avalon-sandbox/meta/src/java/org/apache/avalon/meta/info/DependencyDescriptor.java
  
  Index: DependencyDescriptor.java
  ===================================================================
  RCS file: /home/cvs/avalon-sandbox/meta/src/java/org/apache/avalon/meta/info/DependencyDescriptor.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- DependencyDescriptor.java	29 Nov 2002 15:16:18 -0000	1.2
  +++ DependencyDescriptor.java	30 Nov 2002 14:46:24 -0000	1.3
  @@ -51,6 +51,7 @@
   package org.apache.avalon.meta.info;
   
   import java.util.Properties;
  +import org.apache.avalon.framework.Version;
   
   /**
    * A descriptor that describes dependency information for
  @@ -93,6 +94,16 @@
        * True if dependency is optional, false otherwise.
        */
       private final boolean m_optional;
  +
  +    /**
  +     * Creation of a new dependency descriptor.
  +     * @param role the role name that will be used by the type when looking up a service
  +     * @param service the version insterface service reference
  +     */
  +    public DependencyDescriptor( final String role, String service, Version version )
  +    {
  +        this( role, new ReferenceDescriptor( service, version ), false, null );
  +    }
   
       /**
        * Creation of a new dependency descriptor.
  
  
  

--
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