org.jboss.system.deployers
Class LegacyDeploymentContextComparator

java.lang.Object
  extended by org.jboss.deployers.structure.spi.helpers.DefaultDeploymentContextComparator
      extended by org.jboss.system.deployers.LegacyDeploymentContextComparator
All Implemented Interfaces:
Serializable, Comparator<org.jboss.deployers.structure.spi.DeploymentContext>

public class LegacyDeploymentContextComparator
extends org.jboss.deployers.structure.spi.helpers.DefaultDeploymentContextComparator

Legacy deployment sorter

Author:
ales.justin@jboss.org
See Also:
in system-jmx, in system-jmx, Serialized Form

Field Summary
static LegacyDeploymentContextComparator INSTANCE
          The instance
 
Constructor Summary
LegacyDeploymentContextComparator()
           
 
Method Summary
 int compare(org.jboss.deployers.structure.spi.DeploymentContext fst, org.jboss.deployers.structure.spi.DeploymentContext snd)
           
 void create()
           
protected  int getContextOrder(org.jboss.deployers.structure.spi.DeploymentContext context)
          Get context's order.
static LegacyDeploymentContextComparator getInstance()
          Get the instance.
 void setDefaultOrder(int defaultOrder)
          Set default order.
 void setSuffixOrder(Map<String,Integer> suffixOrder)
          Set suffix order map.
 void setUseDefaults(boolean useDefaults)
          Should we use defaults.
 
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
 

Field Detail

INSTANCE

public static final LegacyDeploymentContextComparator INSTANCE
The instance

Constructor Detail

LegacyDeploymentContextComparator

public LegacyDeploymentContextComparator()
Method Detail

getInstance

public static LegacyDeploymentContextComparator getInstance()
Get the instance.

Returns:
the instance

compare

public int compare(org.jboss.deployers.structure.spi.DeploymentContext fst,
                   org.jboss.deployers.structure.spi.DeploymentContext snd)
Specified by:
compare in interface Comparator<org.jboss.deployers.structure.spi.DeploymentContext>
Overrides:
compare in class org.jboss.deployers.structure.spi.helpers.DefaultDeploymentContextComparator

getContextOrder

protected int getContextOrder(org.jboss.deployers.structure.spi.DeploymentContext context)
Get context's order.

Parameters:
context - the deployment context
Returns:
context's order, or default if no match

create

public void create()

setUseDefaults

public void setUseDefaults(boolean useDefaults)
Should we use defaults.

Parameters:
useDefaults - default flag

setSuffixOrder

public void setSuffixOrder(Map<String,Integer> suffixOrder)
Set suffix order map.

Parameters:
suffixOrder - the suffix order map

setDefaultOrder

public void setDefaultOrder(int defaultOrder)
Set default order.

Parameters:
defaultOrder - the default order


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.