}
}
private void reloadApp(File configFile) {
System.out.println("Reloading resource classes:");
ResourceConfig rc = new ResourceConfig();
// @todo Java SE 7 - use try-with-resources
try {
BufferedReader r = new BufferedReader(new FileReader(configFile));
try {
while (r.ready()) {
final String className = r.readLine();
if (!className.startsWith("#")) {
try {
rc.registerClasses(Class.forName(className));
System.out.printf(" + loaded class %s.\n", className);
} catch (ClassNotFoundException ex) {
System.out.printf(" ! class %s not found.\n", className);
}
} else {