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/12 02:24:48 UTC

cvs commit: jakarta-avalon-excalibur/info/src/java/org/apache/avalon/framework/info DependencyDescriptor.java

donaldp     2002/11/11 17:24:48

  Modified:    info/src/java/org/apache/avalon/framework/info
                        DependencyDescriptor.java
  Log:
  service--> type
  
  Revision  Changes    Path
  1.10      +9 -9      jakarta-avalon-excalibur/info/src/java/org/apache/avalon/framework/info/DependencyDescriptor.java
  
  Index: DependencyDescriptor.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/info/src/java/org/apache/avalon/framework/info/DependencyDescriptor.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- DependencyDescriptor.java	4 Oct 2002 05:52:07 -0000	1.9
  +++ DependencyDescriptor.java	12 Nov 2002 01:24:48 -0000	1.10
  @@ -43,7 +43,7 @@
       /**
        * The service class/interface that the dependency must provide.
        */
  -    private final String m_serviceKey;
  +    private final String m_type;
   
       /**
        * True if dependency is optional, false otherwise.
  @@ -54,7 +54,7 @@
        * Constructor that has all parts sans parent.
        */
       public DependencyDescriptor( final String key,
  -                                 final String service,
  +                                 final String type,
                                    final boolean optional,
                                    final Attribute[] attributes )
       {
  @@ -64,13 +64,13 @@
           {
               throw new NullPointerException( "key" );
           }
  -        if( null == service )
  +        if( null == type )
           {
  -            throw new NullPointerException( "service" );
  +            throw new NullPointerException( "type" );
           }
   
           m_key = key;
  -        m_serviceKey = service;
  +        m_type = type;
           m_optional = optional;
       }
   
  @@ -91,9 +91,9 @@
        * @return a reference to service descriptor that describes the fulfillment
        *  obligations that must be met by a service provider.
        */
  -    public String getService()
  +    public String getType()
       {
  -        return m_serviceKey;
  +        return m_type;
       }
   
       /**
  @@ -116,7 +116,7 @@
           final StringBuffer sb = new StringBuffer();
           sb.append( m_key );
           sb.append( '/' );
  -        sb.append( m_serviceKey );
  +        sb.append( m_type );
           if( m_optional )
           {
               sb.append( "(Optional)" );
  
  
  

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