avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/cpbuilder/metadata ClassLoaderSetDef.java
Date Sun, 01 Sep 2002 01:58:21 GMT
donaldp     2002/08/31 18:58:21

  Modified:    src/java/org/apache/avalon/phoenix/components/cpbuilder/metadata
                        ClassLoaderSetDef.java
  Log:
  Add simple method to test for predefine-ness of a name
  
  Revision  Changes    Path
  1.3       +20 -1     jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/cpbuilder/metadata/ClassLoaderSetDef.java
  
  Index: ClassLoaderSetDef.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/cpbuilder/metadata/ClassLoaderSetDef.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ClassLoaderSetDef.java	1 Sep 2002 01:53:53 -0000	1.2
  +++ ClassLoaderSetDef.java	1 Sep 2002 01:58:21 -0000	1.3
  @@ -117,6 +117,25 @@
       }
   
       /**
  +     * Return true if specified name, designates a
  +     * predefined ClassLoader.
  +     *
  +     * @return true if specified name, designates a
  +     *              predefined ClassLoader.
  +     */
  +    public boolean isPredefined( final String name )
  +    {
  +        for( int i = 0; i < m_predefined.length; i++ )
  +        {
  +            if( m_predefined[ i ].equals( name ) )
  +            {
  +                return true;
  +            }
  +        }
  +        return false;
  +    }
  +
  +    /**
        * Return the classloader with specified name.
        *
        * @return the classloader with specified name
  
  
  

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