Make compatible with Assert static class in Spring 1.2.9.
This commit is contained in:
parent
5b97b3458c
commit
e252f4a497
|
@ -33,7 +33,7 @@ public abstract class OrderedUtils {
|
||||||
Assert.notNull(sourceClass, "Source class required");
|
Assert.notNull(sourceClass, "Source class required");
|
||||||
Assert.notNull(applicationContext, "ApplicationContext required");
|
Assert.notNull(applicationContext, "ApplicationContext required");
|
||||||
Assert.notNull(destinationObject, "Destination object required");
|
Assert.notNull(destinationObject, "Destination object required");
|
||||||
Assert.isAssignable(Ordered.class, sourceClass, "Source class " + sourceClass + " must be assignable to Ordered");
|
Assert.isTrue(Ordered.class.isAssignableFrom(sourceClass), "Source class " + sourceClass + " must be assignable to Ordered");
|
||||||
Map map = applicationContext.getBeansOfType(sourceClass);
|
Map map = applicationContext.getBeansOfType(sourceClass);
|
||||||
if (map.size() == 0) {
|
if (map.size() == 0) {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue