Class SchemaProcessor.InMemoryCache
- java.lang.Object
-
- org.apache.johnzon.jsonschema.generator.SchemaProcessor.InMemoryCache
-
- All Implemented Interfaces:
SchemaProcessor.Cache
- Enclosing class:
- SchemaProcessor
public static class SchemaProcessor.InMemoryCache extends Object implements SchemaProcessor.Cache
-
-
Constructor Summary
Constructors Constructor Description InMemoryCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
findRef(Class<?> type)
Map<String,Schema>
getDefinitions()
protected String
getRefPrefix()
Map<Class<?>,Schema>
getSchemas()
void
initDefinitions(Class<?> from)
void
onClass(Class<?> type)
void
onSchemaCreated(Class<?> type, Schema schema)
private String
sanitize(Class<?> type)
-
-
-
Method Detail
-
findRef
public String findRef(Class<?> type)
- Specified by:
findRef
in interfaceSchemaProcessor.Cache
-
onClass
public void onClass(Class<?> type)
- Specified by:
onClass
in interfaceSchemaProcessor.Cache
-
onSchemaCreated
public void onSchemaCreated(Class<?> type, Schema schema)
- Specified by:
onSchemaCreated
in interfaceSchemaProcessor.Cache
-
initDefinitions
public void initDefinitions(Class<?> from)
- Specified by:
initDefinitions
in interfaceSchemaProcessor.Cache
-
getRefPrefix
protected String getRefPrefix()
-
-