Errai 3.0.1-SNAPSHOT

org.jboss.errai.ioc.rebind.ioc.graph
Class GraphSort

java.lang.Object
  extended by org.jboss.errai.ioc.rebind.ioc.graph.GraphSort

public final class GraphSort
extends Object

Topological sort algorithm to sort the dependency graph prior to emission of the generated code for the IOC bootstrapper.

Author:
Mike Brock

Method Summary
static List<SortUnit> sortGraph(Collection<SortUnit> in)
          Performs of a topological sort and returns a new list of sorted SortUnits.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

sortGraph

public static List<SortUnit> sortGraph(Collection<SortUnit> in)
Performs of a topological sort and returns a new list of sorted SortUnits.

Parameters:
in - a list of sort units to be sorted.
Returns:
a new sorted lis

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.