directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erodrig...@apache.org
Subject svn commit: r158111 - directory/shared/kerberos/trunk/common/src/java/org/apache/kerberos/service/KdcConfiguration.java
Date Fri, 18 Mar 2005 17:28:59 GMT
Author: erodriguez
Date: Fri Mar 18 09:28:57 2005
New Revision: 158111

URL: http://svn.apache.org/viewcvs?view=rev&rev=158111
Log:
Removed defaults loading.

Modified:
    directory/shared/kerberos/trunk/common/src/java/org/apache/kerberos/service/KdcConfiguration.java

Modified: directory/shared/kerberos/trunk/common/src/java/org/apache/kerberos/service/KdcConfiguration.java
URL: http://svn.apache.org/viewcvs/directory/shared/kerberos/trunk/common/src/java/org/apache/kerberos/service/KdcConfiguration.java?view=diff&r1=158110&r2=158111
==============================================================================
--- directory/shared/kerberos/trunk/common/src/java/org/apache/kerberos/service/KdcConfiguration.java
(original)
+++ directory/shared/kerberos/trunk/common/src/java/org/apache/kerberos/service/KdcConfiguration.java
Fri Mar 18 09:28:57 2005
@@ -17,7 +17,6 @@
 
 package org.apache.kerberos.service;
 
-import java.io.IOException;
 import java.util.ArrayList;
 import java.util.Hashtable;
 import java.util.Iterator;
@@ -31,9 +30,6 @@
 
 public class KdcConfiguration
 {
-    /** the defaults resource file */
-    private static final String DEFAULTS = "kerberos.properties";
-
     /** the prop key const for kdc.primary.realm */
     private static final String KDC_PRIMARY_REALM = "kdc.primary.realm";
     /** the prop key const for kdc.principal */
@@ -51,29 +47,14 @@
 
     public KdcConfiguration()
     {
-        loadDefaults();
         prepareEncryptionTypes();
     }
 
 
     public KdcConfiguration( Properties properties )
     {
-        loadDefaults();
         this.properties.putAll( properties );
         prepareEncryptionTypes();
-    }
-
-
-    private void loadDefaults()
-    {
-        try
-        {
-            this.properties.load( getClass().getResourceAsStream( DEFAULTS ) );
-        }
-        catch ( IOException e )
-        {
-            e.printStackTrace();
-        }
     }
 
 



Mime
View raw message