Reload all classes in the specified package: e.g. "com.sun.tools" The special package name " " can be used to refer to unpackaged classes.
( String pack )
| 416 | to unpackaged classes. |
| 417 | */ |
| 418 | @Override |
| 419 | public void reloadPackage( String pack ) |
| 420 | throws ClassPathException |
| 421 | { |
| 422 | Collection classes = |
| 423 | baseClassPath.getClassesForPackage( pack ); |
| 424 | |
| 425 | if ( classes == null ) |
| 426 | classes = |
| 427 | BshClassPath.getUserClassPath().getClassesForPackage( pack ); |
| 428 | |
| 429 | // no point in checking boot class path, can't reload those |
| 430 | |
| 431 | if ( classes == null ) |
| 432 | throw new ClassPathException("No classes found for package: "+pack); |
| 433 | |
| 434 | reloadClasses( (String[])classes.toArray( new String[0] ) ); |
| 435 | } |
| 436 | |
| 437 | /** |
| 438 | Unimplemented |
nothing calls this directly
no test coverage detected