1 17 18 21 package org.quartz.simpl; 22 23 import org.quartz.spi.ClassLoadHelper; 24 25 import java.net.URL ; 26 import java.io.InputStream ; 27 28 39 public class LoadingLoaderClassLoadHelper implements ClassLoadHelper { 40 41 48 49 54 public void initialize() { 55 } 56 57 60 public Class loadClass(String name) throws ClassNotFoundException { 61 return getClassLoader().loadClass(name); 62 } 63 64 70 public URL getResource(String name) { 71 return getClassLoader().getResource(name); 72 } 73 74 80 public InputStream getResourceAsStream(String name) { 81 return getClassLoader().getResourceAsStream(name); 82 } 83 84 private ClassLoader getClassLoader() { 85 return this.getClass().getClassLoader(); 86 } 87 } 88 | Popular Tags |