diff options
author | Constantin Nickel <nickel.c@supergonzo.com> | 2015-04-04 04:02:24 +0200 |
---|---|---|
committer | Constantin Nickel <nickel.c@supergonzo.com> | 2015-04-04 04:02:24 +0200 |
commit | 7eb1147daa38db6809b235bc8efa688e1c7a8cba (patch) | |
tree | 967d1a4219c05e98b86eade6ab0b1b40bc230ae2 /src | |
parent | 99b66024e92192b393dc5d5ba5daa79687ad8c52 (diff) | |
download | iciql-7eb1147daa38db6809b235bc8efa688e1c7a8cba.tar.gz iciql-7eb1147daa38db6809b235bc8efa688e1c7a8cba.zip |
Use ClassLoader of dao interface for proxy
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/com/iciql/DaoProxy.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/iciql/DaoProxy.java b/src/main/java/com/iciql/DaoProxy.java index cafd6f7..d27753f 100644 --- a/src/main/java/com/iciql/DaoProxy.java +++ b/src/main/java/com/iciql/DaoProxy.java @@ -78,7 +78,7 @@ final class DaoProxy<X extends Dao> implements InvocationHandler, Dao { throw new IciqlException("Dao {0} must be an interface!", daoInterface.getName()); } - ClassLoader classLoader = db.getClass().getClassLoader(); + ClassLoader classLoader = daoInterface.getClassLoader(); Set<Class<?>> interfaces = new HashSet<Class<?>>(); interfaces.add(Dao.class); |