Java ClassPath getAvailableClassPathInfo(final ClassLoader classLoader)

Here you can find the source of getAvailableClassPathInfo(final ClassLoader classLoader)

Description

get Available Class Path Info

License

Apache License

Declaration

private static String getAvailableClassPathInfo(final ClassLoader classLoader) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.net.URLClassLoader;

import java.util.Arrays;

public class Main {
    private static String getAvailableClassPathInfo(final ClassLoader classLoader) {

        if (!(classLoader instanceof URLClassLoader)) {
            return "-";
        }//from  w w  w  .j a v a  2s .c  o  m

        final URLClassLoader cl = (URLClassLoader) classLoader;
        return Arrays.toString(cl.getURLs());

    }
}

Related

  1. findClassPaths()
  2. findClasspathsByLoader(ClassLoader loader)
  3. findClassPathsToEn()
  4. findDirectoryFromClasspath(Class cls, String file)
  5. findResourceOnClasspath(String resourceName)
  6. getBootstrapClassPath()
  7. getDriverClassLoader(String driverClasspath)
  8. getFileFromClasspath(final String fileName)
  9. getFileFromClasspath(String fileName)