Top Description Fields Constructors Methods
org.springframework.scheduling.quartz

public Class ResourceLoaderClassLoadHelper

extends Object
implements org.quartz.spi.ClassLoadHelper
Class Inheritance
Imports
java.io.IOException, .InputStream, java.net.URL, org.apache.commons.logging.Log, .LogFactory, org.quartz.spi.ClassLoadHelper, org.springframework.core.io.DefaultResourceLoader, .Resource, .ResourceLoader, org.springframework.lang.Nullable, org.springframework.util.Assert, .ClassUtils

Wrapper that adapts from the Quartz ClassLoadHelper interface onto Spring's ResourceLoader interface. Used by default when the SchedulerFactoryBean runs in a Spring ApplicationContext.
Author
Juergen Hoeller
Since
2.5.5
See Also
SchedulerFactoryBean#setApplicationContext

Field Summary

Modifier and TypeField and Description
protected static final Log
private ResourceLoader

Constructor Summary

AccessConstructor and Description
public
ResourceLoaderClassLoadHelper()

Create a new ResourceLoaderClassLoadHelper for the default ResourceLoader.

public
ResourceLoaderClassLoadHelper(ResourceLoader
the ResourceLoader to delegate to
resourceLoader
)

Create a new ResourceLoaderClassLoadHelper for the given ResourceLoader.

Method Summary

Modifier and TypeMethod and Description
public ClassLoader
public URL
public InputStream
public void
public Class<?>
public <T> Class<? extends T>
loadClass(String name, Class<T> clazz)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

loggerback to summary
protected static final Log logger
resourceLoaderback to summary
private ResourceLoader resourceLoader
Annotations
@Nullable

Constructor Detail

ResourceLoaderClassLoadHelperback to summary
public ResourceLoaderClassLoadHelper()

Create a new ResourceLoaderClassLoadHelper for the default ResourceLoader.

See Also
SchedulerFactoryBean#getConfigTimeResourceLoader()
ResourceLoaderClassLoadHelperback to summary
public ResourceLoaderClassLoadHelper(ResourceLoader resourceLoader)

Create a new ResourceLoaderClassLoadHelper for the given ResourceLoader.

Parameters
resourceLoader:ResourceLoader

the ResourceLoader to delegate to

Method Detail

getClassLoaderback to summary
public ClassLoader getClassLoader()
Annotations
@Override
getResourceback to summary
public URL getResource(String name)
Annotations
@Override
@Nullable
getResourceAsStreamback to summary
public InputStream getResourceAsStream(String name)
Annotations
@Override
@Nullable
initializeback to summary
public void initialize()
Annotations
@Override
loadClassback to summary
public Class<?> loadClass(String name) throws ClassNotFoundException
Annotations
@Override
loadClassback to summary
public <T> Class<? extends T> loadClass(String name, Class<T> clazz) throws ClassNotFoundException
Annotations
@SuppressWarnings:unchecked
@Override