donaldp     2002/06/22 19:30:58

  Modified:    containerkit/src/java/org/apache/excalibur/containerkit/metainfo
                        ContextDescriptor.java
  Log:
  classname --> type
  
  Revision  Changes    Path
  1.7       +13 -13    
jakarta-avalon-excalibur/containerkit/src/java/org/apache/excalibur/containerkit/metainfo/ContextDescriptor.java
  
  Index: ContextDescriptor.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-avalon-excalibur/containerkit/src/java/org/apache/excalibur/containerkit/metainfo/ContextDescriptor.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- ContextDescriptor.java    14 Jun 2002 07:49:52 -0000      1.6
  +++ ContextDescriptor.java    23 Jun 2002 02:30:58 -0000      1.7
  @@ -29,32 +29,32 @@
   public class ContextDescriptor
       extends FeatureDescriptor
   {
  -    private final String m_classname;
  +    private final String m_type;
       private final EntryDescriptor[] m_entrys;
   
       /**
        * Create a descriptor sans attributes.
        */
  -    public ContextDescriptor( final String classname,
  +    public ContextDescriptor( final String type,
                                 final EntryDescriptor[] entrys )
       {
  -        this( classname, entrys, null );
  +        this( type, entrys, null );
       }
   
       /**
        * Create a descriptor.
  -     * @exception NullPointerException if classname or entry argument is null
  +     * @exception NullPointerException if type or entrys argument is null
        * @exception IllegalArgumentException if the classname format is invalid
        */
  -    public ContextDescriptor( final String classname,
  +    public ContextDescriptor( final String type,
                                 final EntryDescriptor[] entrys,
                                 final Properties attributes )
       {
           super( attributes );
   
  -        if( null == classname )
  +        if( null == type )
           {
  -            throw new NullPointerException( "classname" );
  +            throw new NullPointerException( "type" );
           }
   
           if( null == entrys )
  @@ -62,12 +62,12 @@
               throw new NullPointerException( "entrys" );
           }
   
  -        if( classname.indexOf("/") > -1 )
  +        if( type.indexOf("/") > -1 )
           {
  -            throw new IllegalArgumentException( "classname: " + classname );
  +            throw new IllegalArgumentException( "classname: " + type );
           }
   
  -        m_classname = classname;
  +        m_type = type;
           m_entrys = entrys;
       }
   
  @@ -76,9 +76,9 @@
        *
        * @return the classname of Context class.
        */
  -    public String getClassname()
  +    public String getType()
       {
  -        return m_classname;
  +        return m_type;
       }
   
       /**
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to