org.dspace.utils.servicemanager.OrderedServiceComparator Maven / Gradle / Ivy
/**
* The contents of this file are subject to the license and copyright
* detailed in the LICENSE and NOTICE files at the root of the source
* tree and available online at
*
* http://www.dspace.org/license/
*/
package org.dspace.utils.servicemanager;
import java.io.Serializable;
import java.util.Comparator;
import org.dspace.kernel.mixins.OrderedService;
/**
* A comparator for provider beans, filters, and plugins which will
* take ordering into account if {@link OrderedService} is implemented.
* Small numbers are ordered first in priority (i.e. are before large
* ones). NOTE that 0 means "not a priority" so it gets placed at the
* end.
*
* @author Aaron Zeckoski (azeckoski @ gmail.com)
*/
public final class OrderedServiceComparator implements Comparator
© 2015 - 2025 Weber Informatics LLC | Privacy Policy