Interface CachedGeneratorResult


public interface CachedGeneratorResult
An interface to represent the cached results from a previous generator invocation. This is made available in the GeneratorContext to subsequent invocations of the same generator, when called under the same conditions (e.g. for the same rebind rule and requested type name).
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Retrieves cached client data by key.
    Returns the cached result rebind type name.
    long
    Returns the time this generator result was created.
    boolean
    isTypeCached(String typeName)
    Check whether a given type is present in the cached result.
  • Method Details

    • getClientData

      Object getClientData(String key)
      Retrieves cached client data by key.
    • getResultTypeName

      String getResultTypeName()
      Returns the cached result rebind type name.
    • getTimeGenerated

      long getTimeGenerated()
      Returns the time this generator result was created.
    • isTypeCached

      boolean isTypeCached(String typeName)
      Check whether a given type is present in the cached result.