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 )
| 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 |
no test coverage detected