public class ResourceLoaderClassLoadHelper extends java.lang.Object implements 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 |
---|---|
java.lang.ClassLoader |
getClassLoader() |
java.net.URL |
getResource(java.lang.String name) |
java.io.InputStream |
getResourceAsStream(java.lang.String name) |
void |
initialize() |
java.lang.Class<?> |
loadClass(java.lang.String name) |
<T> java.lang.Class<? extends T> |
loadClass(java.lang.String name,
java.lang.Class<T> clazz) |
protected static final Log logger
public ResourceLoaderClassLoadHelper()
public ResourceLoaderClassLoadHelper(ResourceLoader resourceLoader)
resourceLoader
- the ResourceLoader to delegate topublic void initialize()
initialize
in interface ClassLoadHelper
public java.lang.Class<?> loadClass(java.lang.String name) throws java.lang.ClassNotFoundException
loadClass
in interface ClassLoadHelper
java.lang.ClassNotFoundException
public <T> java.lang.Class<? extends T> loadClass(java.lang.String name, java.lang.Class<T> clazz) throws java.lang.ClassNotFoundException
loadClass
in interface ClassLoadHelper
java.lang.ClassNotFoundException
public java.net.URL getResource(java.lang.String name)
getResource
in interface ClassLoadHelper
public java.io.InputStream getResourceAsStream(java.lang.String name)
getResourceAsStream
in interface ClassLoadHelper
public java.lang.ClassLoader getClassLoader()
getClassLoader
in interface ClassLoadHelper