Permalink
Browse files

add some logs here

  • Loading branch information...
1 parent 1f78ffa commit 21d95605c4b5a7b1cbd92f0f070196dd0863e24a Dean Hiller committed Feb 18, 2013
Showing with 9 additions and 1 deletion.
  1. 0 gradle.bat
  2. +9 −1 src/main/java/com/alvazan/orm/api/z8spi/meta/DboTableMeta.java
View
0 gradle.bat 100644 → 100755
No changes.
@@ -114,6 +114,7 @@ public static boolean isValidTableName(String colName) {
private static Proxy testInstanceCreation(Class<?> clazz) {
try {
+ Object obj = clazz.newInstance();
Proxy inst = (Proxy) clazz.newInstance();
return inst;
} catch (InstantiationException e) {
@@ -126,6 +127,12 @@ private static Proxy testInstanceCreation(Class<?> clazz) {
private static void logClassLoaders(Class clazz) {
logClassLoader("[proxies loaded in this one]", clazz.getClassLoader());
+ Class[] interfaces = clazz.getInterfaces();
+ for(Class inter : interfaces) {
+ log.info("loggin interface="+inter);
+ logClassLoader("[INTERFACE="+inter+"]", inter.getClassLoader());
+ }
+
ClassLoader cl = Thread.currentThread().getContextClassLoader();
logClassLoader("[context classloader]", cl);
@@ -146,7 +153,8 @@ private static void logClassLoader(String prefix, ClassLoader loader) {
logMsg+=cl+",";
cl = cl.getParent();
}
- log.info(prefix+"classloaders that proxies class exists in="+logMsg+"}");
+ log.info(prefix+"BEGIN BEGIN classloaders that proxies class exists in="+logMsg+"}");
+ log.info(prefix+"END END END END END classloader info)
}
public String getRealColumnFamily() {

0 comments on commit 21d9560

Please sign in to comment.