| Modifier and Type | Field and Description |
|---|---|
private static Logger |
logger |
private Map<String,Model> |
models
Map to all the
Models created by the SDK. |
| Modifier | Constructor and Description |
|---|---|
protected |
ModelRegistry()
Constructs a ModelRegistry object with an empty registry of
Models. |
| Modifier and Type | Method and Description |
|---|---|
protected Model |
getModel(String path)
Returns the
Model associated with the specified path in the registry. |
protected boolean |
isModelRegistered(String path)
Returns if a
Model has been registered with the specified path. |
protected void |
registerModel(Model model)
Adds a
Model to the registry. |
protected Model |
unregisterModel(String path)
Removes a
Model from the registry. |
private static final Logger logger
protected ModelRegistry()
Models.protected void registerModel(Model model)
Model to the registry.model - the model to be added to the registry.IllegalStateException - the path has already been used by another
model.protected Model unregisterModel(String path)
Model from the registry.path - to the model.protected boolean isModelRegistered(String path)
Model has been registered with the specified path.path - of the model to check.