Class JsonSchemaCacheSingleton
- java.lang.Object
-
- org.restheart.mongodb.handlers.schema.JsonSchemaCacheSingleton
-
public class JsonSchemaCacheSingleton extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.everit.json.schema.Schemaget(String schemaStoreDb, org.bson.BsonValue schemaId)static JsonSchemaCacheSingletongetInstance()org.bson.BsonDocumentgetRaw(String schemaStoreDb, org.bson.BsonValue schemaId)
-
-
-
Method Detail
-
getInstance
public static JsonSchemaCacheSingleton getInstance()
- Returns:
-
get
public org.everit.json.schema.Schema get(String schemaStoreDb, org.bson.BsonValue schemaId) throws JsonSchemaNotFoundException
- Parameters:
schemaStoreDb-schemaId-- Returns:
- Throws:
JsonSchemaNotFoundException
-
getRaw
public org.bson.BsonDocument getRaw(String schemaStoreDb, org.bson.BsonValue schemaId) throws JsonSchemaNotFoundException
- Parameters:
schemaStoreDb-schemaId-- Returns:
- Throws:
JsonSchemaNotFoundException
-
-