当前页面:
在线文档首页 >
JBoss 3.2.7 system API Documentation 英文版文档
DeploymentSorter (JBoss System API) - JBoss 3.2.7 system API Documentation 英文版文档
org.jboss.deployment
Class DeploymentSorter
java.lang.Object
org.jboss.deployment.DeploymentSorter
- All Implemented Interfaces:
- Comparator
- public class DeploymentSorter
- extends Object
- implements Comparator
A helper class for sorting deployments.
- Version:
- $Revision: 1.5.2.6 $
- Author:
- Jason Dillon
Method Summary |
int |
compare(Object o1,
Object o2)
Return a negative number if o1 appears lower in the the suffix order than
o2. |
int |
getExtensionIndex(URL url)
Return the index that matches this url |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_SUFFIX_ORDER
public static final String[] DEFAULT_SUFFIX_ORDER
- The default order for sorting deployments.
suffixOrder
protected String[] suffixOrder
DeploymentSorter
public DeploymentSorter(String[] suffixOrder)
DeploymentSorter
public DeploymentSorter()
compare
public int compare(Object o1,
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 Comparator
getExtensionIndex
public int getExtensionIndex(URL url)
- Return the index that matches this url
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.