You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2010/10/11 13:38:32 UTC
svn commit: r1021310 -
/directory/apacheds/trunk/server-config/src/main/java/org/apache/directory/server/config/ConfigPartitionReader.java
Author: elecharny
Date: Mon Oct 11 11:38:31 2010
New Revision: 1021310
URL: http://svn.apache.org/viewvc?rev=1021310&view=rev
Log:
Renamed the createTestEntries method to readTestEntries
Modified:
directory/apacheds/trunk/server-config/src/main/java/org/apache/directory/server/config/ConfigPartitionReader.java
Modified: directory/apacheds/trunk/server-config/src/main/java/org/apache/directory/server/config/ConfigPartitionReader.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/server-config/src/main/java/org/apache/directory/server/config/ConfigPartitionReader.java?rev=1021310&r1=1021309&r2=1021310&view=diff
==============================================================================
--- directory/apacheds/trunk/server-config/src/main/java/org/apache/directory/server/config/ConfigPartitionReader.java (original)
+++ directory/apacheds/trunk/server-config/src/main/java/org/apache/directory/server/config/ConfigPartitionReader.java Mon Oct 11 11:38:31 2010
@@ -1000,7 +1000,7 @@ public class ConfigPartitionReader
if ( testEntryAttr != null )
{
String entryFilePath = testEntryAttr.getString();
- dirService.setTestEntries( createTestEntries( entryFilePath ) );
+ dirService.setTestEntries( readTestEntries( entryFilePath ) );
}
if ( !isEnabled( dsEntry ) )
@@ -1737,7 +1737,14 @@ public class ConfigPartitionReader
}
- private List<LdifEntry> createTestEntries( String entryFilePath ) throws Exception
+ /**
+ * Load the Test entries
+ *
+ * @param entryFilePath The place on disk where the test entris are stored
+ * @return A list of difEntry elements
+ * @throws Exception If we weren't able to read the config
+ */
+ public List<LdifEntry> readTestEntries( String entryFilePath ) throws Exception
{
List<LdifEntry> entries = new ArrayList<LdifEntry>();
@@ -1756,7 +1763,6 @@ public class ConfigPartitionReader
return entries;
}
-
private void loadEntries( File ldifFile, List<LdifEntry> entries ) throws Exception
{
if ( ldifFile.isDirectory() )