Code example for DexClassLoader

0
     * @return dex class loader instance with its classpath set to location 
     * indicated by {@code pathHolder} 
     */ 
    public ClassLoader getDexClassLoader(PathHolder pathHolder) {
        ClassLoader myLoader = DexClassLoaderHelper.class.getClassLoader();
        return new DexClassLoader(pathHolder.getJarFilePath(), pathHolder.getDirLocation(),
                null, myLoader);
    } 
}