org.springframework.scheduling.quartz
Class ResourceLoaderClassLoadHelper
java.lang.Object
org.springframework.scheduling.quartz.ResourceLoaderClassLoadHelper
public class ResourceLoaderClassLoadHelper
- extends java.lang.Object
Wrapper that adapts from the Quartz ClassLoadHelper
interface
onto Spring's ResourceLoader
interface. Used by default when
the SchedulerFactoryBean runs in a Spring ApplicationContext.
- Since:
- 2.5.5
- Author:
- Juergen Hoeller
- See Also:
SchedulerFactoryBean.setApplicationContext(org.springframework.context.ApplicationContext)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected static final Log logger
resourceLoader
private ResourceLoader resourceLoader
ResourceLoaderClassLoadHelper
public ResourceLoaderClassLoadHelper()
- Create a new ResourceLoaderClassLoadHelper for the default
ResourceLoader.
- See Also:
SchedulerFactoryBean.getConfigTimeResourceLoader()
ResourceLoaderClassLoadHelper
public ResourceLoaderClassLoadHelper(ResourceLoader resourceLoader)
- Create a new ResourceLoaderClassLoadHelper for the given ResourceLoader.
- Parameters:
resourceLoader
- the ResourceLoader to delegate to
initialize
public void initialize()
loadClass
public java.lang.Class loadClass(java.lang.String name)
throws java.lang.ClassNotFoundException
- Throws:
java.lang.ClassNotFoundException
getResource
public java.net.URL getResource(java.lang.String name)
getResourceAsStream
public java.io.InputStream getResourceAsStream(java.lang.String name)
getClassLoader
public java.lang.ClassLoader getClassLoader()