MCPcopy Index your code
hub / github.com/beanshell/beanshell / plainClassForName

Method plainClassForName

src/bsh/BshClassManager.java:228–241  ·  view source on GitHub ↗

Perform a plain Class.forName() or call the externally provided classloader. If a BshClassManager implementation is loaded the call will be delegated to it, to allow for additional hooks. This simply wraps that bottom level class lookup call and provides a central point for monit

( String name )

Source from the content-addressed store, hash-verified

226 @return the class
227 */
228 public Class plainClassForName( String name )
229 throws ClassNotFoundException
230 {
231 Class c = null;
232
233 if ( externalClassLoader != null )
234 c = externalClassLoader.loadClass( name );
235 else
236 c = Class.forName( name );
237
238 cacheClassInfo( name, c );
239
240 return c;
241 }
242
243 /**
244 Get a resource URL using the BeanShell classpath

Callers 3

classForNameMethod · 0.95
loadSourceClassMethod · 0.95
findClassMethod · 0.80

Calls 2

cacheClassInfoMethod · 0.95
loadClassMethod · 0.80

Tested by

no test coverage detected