org.jboss.deployers.plugins.sort
Class DominoOrdering<T extends Domino>
java.lang.Object
org.jboss.deployers.plugins.sort.DominoOrdering<T>
- Type Parameters:
T - exact domino type
public class DominoOrdering<T extends Domino>
- extends Object
Simple transition ordering using transitive closure.
- Author:
- Ales Justin
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
message
protected String message
dominoes
protected List<T extends Domino> dominoes
size
protected int size
connections
protected int[][] connections
DominoOrdering
public DominoOrdering(String message)
init
protected void init(List<T> dominoes,
Object cause)
orderDominoes
public List<T> orderDominoes(List<T> dominoes,
Object cause)
fillTransitions
protected int fillTransitions(boolean fillTransitions)
- Fill transitions.
- Parameters:
fillTransitions - do change
- Returns:
- index of the domino cycle cause, -1 otherwise
fillCompareNames
protected void fillCompareNames()
throwCycleException
protected void throwCycleException(Object cause)
Copyright © 2008 JBoss Inc.. All Rights Reserved.