directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r1044958 - /directory/shared/trunk/ldap-schema/src/main/java/org/apache/directory/shared/ldap/schema/ldif/extractor/impl/DefaultSchemaLdifExtractor.java
Date Sun, 12 Dec 2010 23:46:26 GMT
Author: seelmann
Date: Sun Dec 12 23:46:26 2010
New Revision: 1044958

URL: http://svn.apache.org/viewvc?rev=1044958&view=rev
Log:
Fixed method names and javadoc

Modified:
    directory/shared/trunk/ldap-schema/src/main/java/org/apache/directory/shared/ldap/schema/ldif/extractor/impl/DefaultSchemaLdifExtractor.java

Modified: directory/shared/trunk/ldap-schema/src/main/java/org/apache/directory/shared/ldap/schema/ldif/extractor/impl/DefaultSchemaLdifExtractor.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap-schema/src/main/java/org/apache/directory/shared/ldap/schema/ldif/extractor/impl/DefaultSchemaLdifExtractor.java?rev=1044958&r1=1044957&r2=1044958&view=diff
==============================================================================
--- directory/shared/trunk/ldap-schema/src/main/java/org/apache/directory/shared/ldap/schema/ldif/extractor/impl/DefaultSchemaLdifExtractor.java
(original)
+++ directory/shared/trunk/ldap-schema/src/main/java/org/apache/directory/shared/ldap/schema/ldif/extractor/impl/DefaultSchemaLdifExtractor.java
Sun Dec 12 23:46:26 2010
@@ -164,7 +164,7 @@ public class DefaultSchemaLdifExtractor 
         {
             if ( entry.getValue() )
             {
-                extractFromJar( entry.getKey() );
+                extractFromClassLoader( entry.getKey() );
             }
             else
             {
@@ -348,9 +348,9 @@ public class DefaultSchemaLdifExtractor 
 
 
     /**
-     * Gets the DBFILE resource from within a jar off the base path.  If another jar
-     * with such a DBFILE resource exists then an error will result since the resource
-     * is not unique across all the jars.
+     * Gets the unique schema file resource from the class loader off the base path.  If

+     * the same resource exists multiple times then an error will result since the resource
+     * is not unique.
      *
      * @param resourceName the file name of the resource to load
      * @param resourceDescription human description of the resource
@@ -367,11 +367,11 @@ public class DefaultSchemaLdifExtractor 
 
 
     /**
-     * Gets a unique resource from a Jar file.
+     * Gets a unique resource from the class loader.
      * 
      * @param resourceName the name of the resource
      * @param resourceDescription the description of the resource
-     * @return the URL to the resource in the Jar file
+     * @return the URL to the resource in the class loader
      * @throws IOException if there is an IO error
      */
     public static URL getUniqueResource( String resourceName, String resourceDescription
) throws IOException
@@ -391,12 +391,12 @@ public class DefaultSchemaLdifExtractor 
 
 
     /**
-     * Extracts the LDIF schema resource from a Jar.
+     * Extracts the LDIF schema resource from class loader.
      *
      * @param resource the LDIF schema resource
      * @throws IOException if there are IO errors
      */
-    private void extractFromJar( String resource ) throws IOException
+    private void extractFromClassLoader( String resource ) throws IOException
     {
         byte[] buf = new byte[512];
         InputStream in = DefaultSchemaLdifExtractor.getUniqueResourceAsStream( resource,



Mime
View raw message