org.jboss.deployment
Class DeploymentSorter
java.lang.Object
org.jboss.deployment.DeploymentSorter
- All Implemented Interfaces:
- java.util.Comparator, DefaultDeploymentSorter (src)
- public class DeploymentSorter
- extends java.lang.Object
- implements java.util.Comparator, DefaultDeploymentSorter (src)
A helper class for sorting deployments.
Method Summary |
int |
compare(java.lang.Object o1,
java.lang.Object o2)
Return a negative number if o1 appears lower in the the suffix order than
o2. |
int |
getExtensionIndex(java.net.URL url)
Return the index that matches this url |
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 |
DEFAULT_SUFFIX_ORDER
public static final java.lang.String[] DEFAULT_SUFFIX_ORDER
- Deprecated.
- The default order for sorting deployments; this has been deprecated,
order is really defined in SuffixOrderHelper class and/or individualy
within each subdeployer.
suffixOrder
protected java.lang.String[] suffixOrder
DeploymentSorter
public DeploymentSorter(java.lang.String[] suffixOrder)
DeploymentSorter
public DeploymentSorter()
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)
- Return a negative number if o1 appears lower in the the suffix order than
o2.
If the suffixes are indentical, then sorts based on name.
This is so that deployment order of components is always identical.
- Specified by:
compare
in interface java.util.Comparator
getExtensionIndex
public int getExtensionIndex(java.net.URL url)
- Return the index that matches this url