org.dellroad.stuff.spring
Class BeanNameComparator
java.lang.Object
org.dellroad.stuff.spring.BeanNameComparator
- All Implemented Interfaces:
- Comparator<String>
public class BeanNameComparator
- extends Object
- implements 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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BeanNameComparator
public BeanNameComparator(ListableBeanFactory beanFactory)
compare
public int compare(String name1,
String name2)
- Specified by:
compare in interface Comparator<String>