org.nuxeo.runtime.jboss.deployment
Class NuxeoDeploymentSorter
java.lang.Object
org.jboss.deployment.DeploymentSorter
org.nuxeo.runtime.jboss.deployment.NuxeoDeploymentSorter
- All Implemented Interfaces:
- Serializable, Comparator, org.jboss.deployment.DefaultDeploymentSorter
public class NuxeoDeploymentSorter
- extends org.jboss.deployment.DeploymentSorter
- implements Serializable
- Author:
- Bogdan Stefanescu
- See Also:
- Serialized Form
Fields inherited from class org.jboss.deployment.DeploymentSorter |
DEFAULT_SUFFIX_ORDER, suffixOrder |
Method Summary |
int |
compare(Object o1,
Object o2)
Returns a negative number if o1 appears lower in the suffix order than
o2. |
Methods inherited from class org.jboss.deployment.DeploymentSorter |
getExtensionIndex, getSuffixOrder, setSuffixOrder |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NuxeoDeploymentSorter
public NuxeoDeploymentSorter()
compare
public int compare(Object o1,
Object o2)
- Returns a negative number if o1 appears lower in the suffix order than
o2.
If the suffixes are indentical, then sorts based on nuxeo dependencies and
then based on name.
This is so that deployment order of components is always identical.
- Specified by:
compare
in interface Comparator
- Overrides:
compare
in class org.jboss.deployment.DeploymentSorter
Copyright © 2010 Nuxeo SAS. All Rights Reserved.