Interface TemplateCompilerMemoryStore
-
- All Known Implementing Classes:
ThreadLocalTemplateCompilerStore
public interface TemplateCompilerMemoryStoreInterface representing methods for an in-memory store.Template compiles can have their worn stores to pass objects between the different calls.
- Since:
- 0.6.0
- Author:
- nandorholozsnyak
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddItemToMemory(String key, Object value)Adds item to the memory store.<T> TgetItem(String key)Returns an item from the store.voidresetMemory()Resets the memory.
-
-
-
Method Detail
-
addItemToMemory
void addItemToMemory(String key, Object value)
Adds item to the memory store.- Parameters:
key- key of the value.value- object to be stored.
-
getItem
@Nullable <T> T getItem(String key)
Returns an item from the store.- Type Parameters:
T- type of the object to be returned.- Parameters:
key- key value.- Returns:
- stored object, or null if it does not exist in the store.
-
resetMemory
void resetMemory()
Resets the memory.
-
-