cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mgen...@apache.org
Subject svn commit: r687857 - /cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/conn/DataSourceInfo.java
Date Thu, 21 Aug 2008 20:26:40 GMT
Author: mgentry
Date: Thu Aug 21 13:26:39 2008
New Revision: 687857

URL: http://svn.apache.org/viewvc?rev=687857&view=rev
Log:
Changed to use Util.getJavaClass() to get the password encoder class.

Modified:
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/conn/DataSourceInfo.java

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/conn/DataSourceInfo.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/conn/DataSourceInfo.java?rev=687857&r1=687856&r2=687857&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/conn/DataSourceInfo.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/conn/DataSourceInfo.java
Thu Aug 21 13:26:39 2008
@@ -202,10 +202,8 @@
 
     public PasswordEncoding getPasswordEncoder() {
         try {
-            return (PasswordEncoding) Thread.currentThread()
-                                            .getContextClassLoader()
-                                            .loadClass(getPasswordEncoderClass())
-                                            .newInstance();
+            return (PasswordEncoding)
+                Util.getJavaClass(getPasswordEncoderClass()).newInstance();
         }
         catch (InstantiationException e) {
             ; // Swallow it -- no need to throw/etc.



Mime
View raw message