added Quartz 2.1 loadClass variant (SPR-8727)

This commit is contained in:
Juergen Hoeller 2011-11-11 09:54:28 +00:00
parent 2a39f34d33
commit 0b078f2ff9
1 changed files with 6 additions and 1 deletions

View File

@ -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"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -75,6 +75,11 @@ public class ResourceLoaderClassLoadHelper implements ClassLoadHelper {
return this.resourceLoader.getClassLoader().loadClass(name); 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) { public URL getResource(String name) {
Resource resource = this.resourceLoader.getResource(name); Resource resource = this.resourceLoader.getResource(name);
try { try {