public class LoadContext extends Object
Constructor and Description |
---|
LoadContext(LoadEngine engine) |
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 |
enterContainerContext(Object container)
Enter a container context; this is the context of the object that we are processing right now.
|
void |
exitContainerContext(Object expectedContainer)
Exit a container context.
|
Object |
getContainer(Type containerType,
Path path)
Get the container object which is appropriate for the specified property.
|
<T> Ref<T> |
loadRef(Key<T> key,
LoadConditions loadConditions)
Create a Ref for the key, and maybe start a load operation depending on current load groups.
|
void |
recycle(Object value) |
void |
setCurrentRoot(Key<?> rootEntity)
Sets the current root entity
|
Object |
useRecycled()
The most recently recycled value.
|
public LoadContext(LoadEngine engine)
public Object useRecycled()
public void recycle(Object value)
public void setCurrentRoot(Key<?> rootEntity)
public void done()
public <T> Ref<T> loadRef(Key<T> key, LoadConditions loadConditions)
public void defer(Runnable runnable)
public Object getContainer(Type containerType, Path path)
public void enterContainerContext(Object container)
public void exitContainerContext(Object expectedContainer)
Copyright © 2015. All rights reserved.