summaryrefslogtreecommitdiffstats
path: root/src/java/jogamp/android/launcher/TraceDexClassLoader.java
blob: 0b00489f7054c57842f91e79bd2f75b29717769c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package jogamp.android.launcher;

import java.net.URL;

import android.util.Log;

import dalvik.system.DexClassLoader;

public class TraceDexClassLoader extends DexClassLoader {
    private static final boolean DEBUG = false;
    
    public TraceDexClassLoader(String dexPath, String dexOutputDir, String libPath, ClassLoader parent) {
        super(dexPath, dexOutputDir, libPath, parent);
        if(DEBUG) {
            Log.d(TraceDexClassLoader.class.getSimpleName(), "ctor: dexPath " + dexPath + ", dexOutputDir " + dexOutputDir + ", libPath " + libPath + ", parent " + parent);
        }
    }
    
    @Override
    public URL findResource(String name) {
        final URL url = super.findResource(name);
        if(DEBUG) {
            Log.d(TraceDexClassLoader.class.getSimpleName(), "findResource: " + name + " -> " + url);
        }
        return url;
    }
}