Nuxeo Enterprise Platform 5.3

org.nuxeo.runtime.jboss.deployment
Class NuxeoDeploymentSorter

java.lang.Object
  extended by org.jboss.deployment.DeploymentSorter
      extended by 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

Field Summary
 
Fields inherited from class org.jboss.deployment.DeploymentSorter
DEFAULT_SUFFIX_ORDER, suffixOrder
 
Constructor Summary
NuxeoDeploymentSorter()
           
 
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
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

NuxeoDeploymentSorter

public NuxeoDeploymentSorter()
Method Detail

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

Nuxeo Enterprise Platform 5.3

Copyright © 2010 Nuxeo SAS. All Rights Reserved.