Re: svn commit: r687826 - /cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/conn/DataSourceInfo.java

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Thu Aug 21 2008 - 15:31:44 EDT

  • Next message: Michael Gentry: "Re: svn commit: r687826 - /cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/conn/DataSourceInfo.java"

    On Aug 21, 2008, at 9:39 PM, mgentr..pache.org wrote:

    > - return (PasswordEncoding) Util
    > - .getJavaClass(getPasswordEncoderClass())
    > - .newInstance();
    > + return (PasswordEncoding) Thread.currentThread()
    > + .getContextClassLoader()
    > +
    > .loadClass
    > (getPasswordEncoderClass())
    > + .newInstance();

    Util.getJavaClass is more environment agnostic than
    Thread.currentThread().getContextClassLoader(), which is used
    internally as the first strategy. So maybe this can be undone?

    Andrus



    This archive was generated by hypermail 2.0.0 : Thu Aug 21 2008 - 15:32:25 EDT