|
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.GraphBuilder
public class GraphBuilder
Builds a dependency graph for use by the container.
Constructor Summary | |
---|---|
GraphBuilder()
|
Method Summary | |
---|---|
GraphBuilder |
addDependency(MetaClass type,
Dependency dependency)
Records a dependency on the specified type. |
GraphBuilder |
addItem(MetaClass type,
Object item)
Record an arbitrary object to be associated with a type. |
List<SortUnit> |
build()
Returns a graph of only incoming edges for use in a topological sort. |
int |
getDependencyCount(MetaClass type)
Returns the number of recorded dependencies for the specified type. |
boolean |
hasType(MetaClass type)
|
String |
toDOTRepresentation()
|
static String |
toDOTRepresentation(List<SortUnit> graph)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GraphBuilder()
Method Detail |
---|
public GraphBuilder addDependency(MetaClass type, Dependency dependency)
type
- the type to record a dependency on.dependency
- the depedency
public GraphBuilder addItem(MetaClass type, Object item)
type
- the type to record the item for.item
- the arbitrary object
public int getDependencyCount(MetaClass type)
type
- the type to query for the number of dependencies.
public List<SortUnit> build()
public String toDOTRepresentation()
public static String toDOTRepresentation(List<SortUnit> graph)
public boolean hasType(MetaClass type)
|
Errai 3.0.1-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |