Class ResourceLoaderClassLoadHelper
java.lang.Object
org.springframework.scheduling.quartz.ResourceLoaderClassLoadHelper
- All Implemented Interfaces:
ClassLoadHelper
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:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCreate a new ResourceLoaderClassLoadHelper for the default ResourceLoader.ResourceLoaderClassLoadHelper
(@Nullable ResourceLoader resourceLoader) Create a new ResourceLoaderClassLoadHelper for the given ResourceLoader. -
Method Summary
Modifier and TypeMethodDescriptiongetResource
(String name) getResourceAsStream
(String name) void
Class<?>
<T> Class<? extends T>
-
Field Details
-
logger
protected static final org.apache.commons.logging.Log logger
-
-
Constructor Details
-
ResourceLoaderClassLoadHelper
public ResourceLoaderClassLoadHelper()Create a new ResourceLoaderClassLoadHelper for the default ResourceLoader. -
ResourceLoaderClassLoadHelper
Create a new ResourceLoaderClassLoadHelper for the given ResourceLoader.- Parameters:
resourceLoader
- the ResourceLoader to delegate to
-
-
Method Details
-
initialize
public void initialize()- Specified by:
initialize
in interfaceClassLoadHelper
-
loadClass
- Specified by:
loadClass
in interfaceClassLoadHelper
- Throws:
ClassNotFoundException
-
loadClass
- Specified by:
loadClass
in interfaceClassLoadHelper
- Throws:
ClassNotFoundException
-
getResource
- Specified by:
getResource
in interfaceClassLoadHelper
-
getResourceAsStream
- Specified by:
getResourceAsStream
in interfaceClassLoadHelper
-
getClassLoader
- Specified by:
getClassLoader
in interfaceClassLoadHelper
-