Save This Page
Home » jboss-5.0.0.CR1-src » org » jboss » deployment » scanner » [javadoc | source]
org.jboss.deployment.scanner
public class: PrefixDeploymentSorter [javadoc | source]
java.lang.Object
   org.jboss.deployment.scanner.PrefixDeploymentSorter

All Implemented Interfaces:
    DefaultDeploymentSorter, Comparator

This class is a comparator to sort deployment URLs based on the existence of a numeric prefix. The name portion of the URL is evaluated for any leading digits. If they exist, then they will define a numerical ordering for this comparator. If there is no leading digits, then they will compare as less than any name with leading digits. In the case of a tie, the DeploymentSorter is consulted (@see org.jboss.deployment.DeploymentSorter).

Ex.these names are in ascending order: test.sar, crap.ear, 001test.jar, 5test.rar, 5foo.jar, 120bar.jar
Method from org.jboss.deployment.scanner.PrefixDeploymentSorter Summary:
compare,   getSuffixOrder,   setSuffixOrder
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.deployment.scanner.PrefixDeploymentSorter Detail:
 public int compare(Object o1,
    Object o2) 
    As described in @see java.util.Comparator. This implements the comparison technique described above.
 public String[] getSuffixOrder() 
 public  void setSuffixOrder(String[] suffixOrder)