org.jboss.deployment.scanner
Class AlphaNumericDeploymentSorter

java.lang.Object
  extended byorg.jboss.deployment.scanner.AlphaNumericDeploymentSorter
All Implemented Interfaces:
java.util.Comparator, DefaultDeploymentSorter (src)

public class AlphaNumericDeploymentSorter
extends java.lang.Object
implements java.util.Comparator, DefaultDeploymentSorter (src)

This is simialr to the PrefixDeploymentSorter in that it will order files that do not start with a numeric value before those that do. If two files begin with a number, will compare the numeric values. However, if the two files do not have numeric prefixes, will compare them using compareToIgnoreCase.


Constructor Summary
AlphaNumericDeploymentSorter()
           
 
Method Summary
 int alphaCompare(java.lang.Object o1, java.lang.Object o2)
           
 int compare(java.lang.Object o1, java.lang.Object o2)
           
 java.lang.String[] getSuffixOrder()
           
 void setSuffixOrder(java.lang.String[] suffixOrder)
           
 
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
 

Constructor Detail

AlphaNumericDeploymentSorter

public AlphaNumericDeploymentSorter()
Method Detail

getSuffixOrder

public java.lang.String[] getSuffixOrder()
Specified by:
getSuffixOrder in interface DefaultDeploymentSorter (src)

setSuffixOrder

public void setSuffixOrder(java.lang.String[] suffixOrder)
Specified by:
setSuffixOrder in interface DefaultDeploymentSorter (src)

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Specified by:
compare in interface java.util.Comparator

alphaCompare

public int alphaCompare(java.lang.Object o1,
                        java.lang.Object o2)