public final class NodeUsageCollector extends Object
The node identifies the location of the bean in the object graph.
It has to use a weak reference so as to ensure that it does not stop the associated bean from being garbage collected.
Constructor and Description |
---|
NodeUsageCollector(ObjectGraphNode node,
WeakReference<NodeUsageListener> managerRef) |
Modifier and Type | Method and Description |
---|---|
void |
addUsed(String property)
Add the name of a property that has been used.
|
String |
getLoadProperty() |
ObjectGraphNode |
getNode()
Return the associated node which identifies the location in the object
graph of the bean/reference.
|
Set<String> |
getUsed()
Return the set of used properties.
|
boolean |
isEmpty()
Return true if no properties where used.
|
boolean |
isModified()
Return true if the bean was modified by a setter.
|
void |
setLoadProperty(String loadProperty)
The property that invoked a lazy load.
|
void |
setModified()
The bean has been modified by a setter method.
|
String |
toString() |
public NodeUsageCollector(ObjectGraphNode node, WeakReference<NodeUsageListener> managerRef)
public void setModified()
public void setLoadProperty(String loadProperty)
public ObjectGraphNode getNode()
public boolean isEmpty()
public boolean isModified()
public String getLoadProperty()
Copyright © 2019. All rights reserved.