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-excalibur/extension/src/java/org/apache/avalon/excalibur/packagemanager/impl DefaultExtensionManager.java
Date Fri, 01 Nov 2002 21:34:36 GMT
donaldp     2002/11/01 13:34:35

  Modified:    extension/src/java/org/apache/avalon/excalibur/packagemanager/impl
                        DefaultExtensionManager.java
  Log:
  Add a method to allow access to all the OptionalPackages currently managed
  
  Revision  Changes    Path
  1.7       +14 -2     jakarta-avalon-excalibur/extension/src/java/org/apache/avalon/excalibur/packagemanager/impl/DefaultExtensionManager.java
  
  Index: DefaultExtensionManager.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/extension/src/java/org/apache/avalon/excalibur/packagemanager/impl/DefaultExtensionManager.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- DefaultExtensionManager.java	7 Oct 2002 10:28:09 -0000	1.6
  +++ DefaultExtensionManager.java	1 Nov 2002 21:34:35 -0000	1.7
  @@ -13,6 +13,7 @@
   import java.util.HashMap;
   import java.util.StringTokenizer;
   import java.util.Collections;
  +import java.util.Collection;
   import java.util.jar.JarFile;
   import java.util.jar.Manifest;
   import org.apache.avalon.excalibur.extension.Extension;
  @@ -132,6 +133,17 @@
       }
   
       /**
  +     * Return all the OptionalPackages stored in ExtensionManager.
  +     *
  +     * @return all the OptionalPackages stored in ExtensionManager.
  +     */
  +    protected OptionalPackage[] getAllOptionalPackages()
  +    {
  +        final Collection packages = m_packages.values();
  +        return (OptionalPackage[])packages.toArray( new OptionalPackage[ packages.size()
] );
  +    }
  +
  +    /**
        * Add path elements to repository search path
        *
        * @param pathElements the path elements to add to repository search path
  @@ -314,7 +326,7 @@
        *
        * @param archive the file object for Jar archive
        * @return the OptionalPackage constructed
  -     * @throws java.io.IOException if an error occurs
  +     * @throws IOException if an error occurs
        */
       private OptionalPackage getOptionalPackage( final File archive )
           throws IOException
  
  
  

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