public static class SchemaProcessor.InMemoryCache extends java.lang.Object implements SchemaProcessor.Cache
| Modifier and Type | Field and Description |
|---|---|
private java.util.Map<java.lang.String,Schema> |
definitions |
private java.util.Map<java.lang.Class<?>,java.lang.String> |
refs |
private java.util.Map<java.lang.Class<?>,Schema> |
schemas |
| Constructor and Description |
|---|
InMemoryCache() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
findRef(java.lang.Class<?> type) |
java.util.Map<java.lang.String,Schema> |
getDefinitions() |
protected java.lang.String |
getRefPrefix() |
java.util.Map<java.lang.Class<?>,Schema> |
getSchemas() |
void |
initDefinitions(java.lang.Class<?> from) |
void |
onClass(java.lang.Class<?> type) |
void |
onSchemaCreated(java.lang.Class<?> type,
Schema schema) |
private java.lang.String |
sanitize(java.lang.Class<?> type) |
private final java.util.Map<java.lang.Class<?>,java.lang.String> refs
private final java.util.Map<java.lang.Class<?>,Schema> schemas
private final java.util.Map<java.lang.String,Schema> definitions
public java.util.Map<java.lang.Class<?>,Schema> getSchemas()
public java.util.Map<java.lang.String,Schema> getDefinitions()
public java.lang.String findRef(java.lang.Class<?> type)
findRef in interface SchemaProcessor.Cachepublic void onClass(java.lang.Class<?> type)
onClass in interface SchemaProcessor.Cachepublic void onSchemaCreated(java.lang.Class<?> type,
Schema schema)
onSchemaCreated in interface SchemaProcessor.Cachepublic void initDefinitions(java.lang.Class<?> from)
initDefinitions in interface SchemaProcessor.Cacheprivate java.lang.String sanitize(java.lang.Class<?> type)
protected java.lang.String getRefPrefix()
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.