public AbstractClassLoader add ( File location , Collection < String > exportedJars ) { AbstractClassLoader cl ; if ( location . isDirectory ( ) ) cl = new DirectoryClassLoader ( this , location ) ; else cl = new ZipClassLoader ( this , new FileIOProvider ( location ) ) ; if ( exportedJars != null ) for ( String jar : exportedJars ) cl . addSubLoader ( new ZipClassLoader ( this , new InnerJARProvider ( cl , jar ) ) ) ; synchronized ( libs ) { libs . add ( cl ) ; } return cl ; }
Add a library .