|
Errai 3.0.1-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.errai.ioc.rebind.ioc.graph.SortUnit
public class SortUnit
A sort unit is a logical sorting element for the IOC container on which to order operations in order to correctly render the bootstrapping code. A SortUnit is essentially a node in a directed graph and may have cycles.
Constructor Summary | |
---|---|
protected |
SortUnit(MetaClass type,
List<Object> items,
Set<SortUnit> dependencies)
|
Method Summary | |
---|---|
int |
compareTo(SortUnit o)
|
static SortUnit |
create(MetaClass type,
Collection<Object> items,
Collection<SortUnit> dependencies)
|
boolean |
equals(Object o)
|
Set<SortUnit> |
getDependencies()
Returns a list of SortUnits which are depended on by this SortUnit. |
int |
getDepth()
Returns the outward graph depth of this SortUnit to the outermost leaf or cycle. |
List<Object> |
getItems()
Returns the list of arbitrary items associated with this sort unit. |
MetaClass |
getType()
Returns the type which this sort unit represents. |
boolean |
hasDependency(SortUnit unit)
Determines whether or not the specified SortUnit is a direct or indirect dependency of this SortUnit. |
int |
hashCode()
|
boolean |
isCyclicGraph()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected SortUnit(MetaClass type, List<Object> items, Set<SortUnit> dependencies)
Method Detail |
---|
public static SortUnit create(MetaClass type, Collection<Object> items, Collection<SortUnit> dependencies)
public MetaClass getType()
public List<Object> getItems()
Typically items are units of work used by the container to orchestrate the generation of code in the correct order.
public Set<SortUnit> getDependencies()
public boolean hasDependency(SortUnit unit)
unit
- the SortUnit to check against
public boolean isCyclicGraph()
public int getDepth()
public boolean equals(Object o)
equals
in class Object
public int compareTo(SortUnit o)
compareTo
in interface Comparable<SortUnit>
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
Errai 3.0.1-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |