public class ResourceLoaderClassLoadHelper extends 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 |
---|---|
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(ResourceLoader resourceLoader)
resourceLoader
- the ResourceLoader to delegate topublic void initialize()
initialize
in interface ClassLoadHelper
public Class<?> loadClass(String name) throws ClassNotFoundException
loadClass
in interface ClassLoadHelper
ClassNotFoundException
public <T> Class<? extends T> loadClass(String name, Class<T> clazz) throws ClassNotFoundException
loadClass
in interface ClassLoadHelper
ClassNotFoundException
public URL getResource(String name)
getResource
in interface ClassLoadHelper
public InputStream getResourceAsStream(String name)
getResourceAsStream
in interface ClassLoadHelper
public ClassLoader getClassLoader()
getClassLoader
in interface ClassLoadHelper