Browse Source

added Quartz 2.1 loadClass variant (SPR-8727)

pull/7/head
Juergen Hoeller 14 years ago
parent
commit
0b078f2ff9
  1. 7
      org.springframework.context.support/src/main/java/org/springframework/scheduling/quartz/ResourceLoaderClassLoadHelper.java

7
org.springframework.context.support/src/main/java/org/springframework/scheduling/quartz/ResourceLoaderClassLoadHelper.java

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright 2002-2008 the original author or authors.
* Copyright 2002-2011 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -75,6 +75,11 @@ public class ResourceLoaderClassLoadHelper implements ClassLoadHelper { @@ -75,6 +75,11 @@ public class ResourceLoaderClassLoadHelper implements ClassLoadHelper {
return this.resourceLoader.getClassLoader().loadClass(name);
}
@SuppressWarnings("unchecked")
public <T> Class<? extends T> loadClass(String name, Class<T> clazz) throws ClassNotFoundException {
return loadClass(name);
}
public URL getResource(String name) {
Resource resource = this.resourceLoader.getResource(name);
try {

Loading…
Cancel
Save