@ -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 {