public class ResourceLoaderClassLoadHelper extends Object implements org.quartz.spi.ClassLoadHelper
ClassLoadHelper
interface
onto Spring's ResourceLoader
interface. Used by default when
the SchedulerFactoryBean runs in a Spring ApplicationContext.SchedulerFactoryBean.setApplicationContext(org.springframework.context.ApplicationContext)
Constructor and Description |
---|
ResourceLoaderClassLoadHelper()
Create a new ResourceLoaderClassLoadHelper for the default
ResourceLoader.
|
ResourceLoaderClassLoadHelper(ResourceLoader resourceLoader)
Create a new ResourceLoaderClassLoadHelper for the given ResourceLoader.
|
Modifier and Type | Method and Description |
---|---|
ClassLoader |
getClassLoader() |
URL |
getResource(String name) |
InputStream |
getResourceAsStream(String name) |
void |
initialize() |
Class<?> |
loadClass(String name) |
<T> Class<? extends T> |
loadClass(String name,
Class<T> clazz) |
protected static final Log logger
public ResourceLoaderClassLoadHelper()
public ResourceLoaderClassLoadHelper(@Nullable ResourceLoader resourceLoader)
resourceLoader
- the ResourceLoader to delegate topublic void initialize()
initialize
in interface org.quartz.spi.ClassLoadHelper
public Class<?> loadClass(String name) throws ClassNotFoundException
loadClass
in interface org.quartz.spi.ClassLoadHelper
ClassNotFoundException
public <T> Class<? extends T> loadClass(String name, Class<T> clazz) throws ClassNotFoundException
loadClass
in interface org.quartz.spi.ClassLoadHelper
ClassNotFoundException
@Nullable public URL getResource(String name)
getResource
in interface org.quartz.spi.ClassLoadHelper
@Nullable public InputStream getResourceAsStream(String name)
getResourceAsStream
in interface org.quartz.spi.ClassLoadHelper
public ClassLoader getClassLoader()
getClassLoader
in interface org.quartz.spi.ClassLoadHelper