UniqueDictRegistry#
- class jdaviz.core.registries.UniqueDictRegistry[source]#
Bases:
DictRegistry
Base registry class that handles hashmap-like associations between a string representation of a plugin and the class to be instantiated.
Methods Summary
add
(name, cls[, overwrite])Add an item to the registry.
Methods Documentation
- add(name, cls, overwrite=False)[source]#
Add an item to the registry.
- Parameters:
- namestr
The name referencing the associated class in the registry.
- clstype
The class definition (not instance) associated with the name given in the first parameter.
- overwritebool, optional
Whether to overwrite an existing entry with the same
label
.