public static Map<String, Class<?>> loadClasses(ClassLoader classLoader, Set<String> classNames) {
        Map<String, Class<?>> classes = new HashMap<String, Class<?>>();

        for (String className : classNames) {
            Class<?> clazz = loadClass(classLoader, className);
            if (clazz != null) {
                classes.put(className, clazz);
            }
        }

        return classes;
    }
public static Map < String , Class < ? > > loadClasses ( ClassLoader classLoader , Set < String > classNames ) { Map < String , Class < ? > > classes = new HashMap < String , Class < ? > > ( ) ; for ( String className : classNames ) { Class < ? > clazz = loadClass ( classLoader , className ) ; if ( clazz != null ) { classes . put ( className , clazz ) ; } } return classes ; }
Load classes using the given classloader
<p>
All Classes will be loaded unconditionally, as long as the classloader can access them.
<p>
If a class name cannot be found, it is ignored.

@param classLoader the classLoader
@param classNames classes to load
@return the map of loaded Class objects