Package org.openapitools.codegen.utils
Interface JsonCache.Factory
-
- Enclosing interface:
- JsonCache
public static interface JsonCache.Factory
A factory for creating JSON cache root instances.
-
-
Field Summary
Fields Modifier and Type Field Description static JsonCache.Factory
instance
The singleton factory instance.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JsonCache.Root
create()
Returns a new cache root instance.JsonCache.Root
get(String key)
Returns the singleton cache root instance for the specified key.
-
-
-
Field Detail
-
instance
static final JsonCache.Factory instance
The singleton factory instance.
-
-
Method Detail
-
create
JsonCache.Root create()
Returns a new cache root instance.- Returns:
- A new instance.
-
get
JsonCache.Root get(String key)
Returns the singleton cache root instance for the specified key. The same instance is returned every time the method is called with the samekey
value, being lazily created on the first such call.- Parameters:
key
- The instance key.- Returns:
- The singleton instance for
key
.
-
-