Package org.dellroad.stuff.spring
Class BeanNameComparator
java.lang.Object
org.dellroad.stuff.spring.BeanNameComparator
- All Implemented Interfaces:
Serializable
,Comparator<String>
A
Comparator
that orders Spring bean names in the same order as the corresponding
beans appear in a ListableBeanFactory
.
Names that are not present in the configured ListableBeanFactory
cause an exception.
- See Also:
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
BeanNameComparator
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<String>
-