Class PreGetContext

  • All Implemented Interfaces:
    CallbackContext<Key>

    public final class PreGetContext
    extends Object
    Concrete CallbackContext implementation that is specific to intercepted get() operations. Methods annotated with PreGet that receive instances of this class may modify the result of the get() operation by calling setResultForCurrentElement(Entity). Keys that receive results via this method will not be fetched from the datastore. This is an effective way to inject cached results.