|
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
org.jboss.errai.ioc.rebind.ioc.graph.ProxySortUnit
public class ProxySortUnit
A cycle breaking proxy used by the GraphBuilder
to properly construct a graph which can accurately
represent cycles. A ProxySortUnit must be closed by calling setDelegate(SortUnit)
before
being put into use, otherwise calls to any methods will result in NullPointerException
.
Method Summary | |
---|---|
int |
compareTo(SortUnit 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. |
static ProxySortUnit |
proxyOf(MetaClass type)
Creates a new proxied SortUnit on the specified type. |
void |
setDelegate(SortUnit unit)
Sets the instance of SortUnit which should be proxied on. |
String |
toString()
|
Methods inherited from class org.jboss.errai.ioc.rebind.ioc.graph.SortUnit |
---|
create, equals, hasDependency, hashCode, isCyclicGraph |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static ProxySortUnit proxyOf(MetaClass type)
type
- the sort unit
public Set<SortUnit> getDependencies()
SortUnit
getDependencies
in class SortUnit
public List<Object> getItems()
SortUnit
Typically items are units of work used by the container to orchestrate the generation of code in the correct order.
getItems
in class SortUnit
public MetaClass getType()
SortUnit
getType
in class SortUnit
public int getDepth()
SortUnit
getDepth
in class SortUnit
public int compareTo(SortUnit o)
compareTo
in interface Comparable<SortUnit>
compareTo
in class SortUnit
public String toString()
toString
in class SortUnit
public void setDelegate(SortUnit unit)
SortUnit
which should be proxied on.
unit
-
|
Errai 3.0.1-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |