public class LoadContext extends Object
Constructor and Description |
---|
LoadContext(Loader loader,
LoadEngine batch) |
Modifier and Type | Method and Description |
---|---|
void |
defer(Runnable runnable)
Delays an operation until the context is done().
|
void |
done()
Call this when a load process completes.
|
void |
enterOwnerContext(Object owner)
Enter an "owner" context; this is the context of the object that we are processing right now.
|
void |
exitOwnerContext(Object expectedOwner)
Exit an "owner" context.
|
Loader |
getLoader() |
Set<Class<?>> |
getLoadGroups()
Gets the currently enabled set of load groups
|
Object |
getOwner(Property ownerProp)
Get the owner object which is appropriate for the specified property.
|
<T> Ref<T> |
makeRef(Property property,
Key<T> key)
Create a Ref for the key, and maybe initialize the value depending on the load annotation and the current
state of load groups.
|
void |
setCurrentRoot(Key<?> rootEntity)
Sets the current root entity
|
public LoadContext(Loader loader, LoadEngine batch)
public Loader getLoader()
public void setCurrentRoot(Key<?> rootEntity)
public void done()
public <T> Ref<T> makeRef(Property property, Key<T> key)
public void defer(Runnable runnable)
public Object getOwner(Property ownerProp)
public void enterOwnerContext(Object owner)
public void exitOwnerContext(Object expectedOwner)
Copyright © 2014. All rights reserved.