Interface TemplateCompilerMemoryStore

  • All Known Implementing Classes:
    ThreadLocalTemplateCompilerStore

    public interface TemplateCompilerMemoryStore
    Interface 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 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.