Code example for DexClassLoader

0
            tmp.mkdirs();
        } 
 
        @Override 
        public ClassLoader getClassLoader(URL url, ClassLoader parent) {
            return new DexClassLoader(url.getPath(), tmp.getAbsolutePath(),
                    null, parent);
        } 
    } 
     
    /** 
     * Implementation for the reference implementation. Nothing interesting to 
     * see here. Please get along. 
     */ 
    static class RefImpl extends Support_ClassLoader { 
        @Override 
        public ClassLoader getClassLoader(URL url, ClassLoader parent) {
            return new URLClassLoader(new URL[] { url }, parent);
        } 
    } 
}