jade.extensions.registry.Registry¶
- class jade.extensions.registry.Registry(registry_filename=None)[source]¶
Bases:
object
Manages extensions registered with JADE.
Methods
add_logger
(package_name)Add a package name to the logging registry.
get_extension_class
(extension_name, class_type)Get the class associated with the extension.
is_registered
(extension_name)Check if the extension is registered
Return an iterator over registered extensions.
Return a list of registered extensions.
List the package names registered to be logged.
register_demo_extension
()register_extension
(extension)Registers an extension in the registry.
remove_logger
(package_name)Remove a package name from the logging registry.
Reset the registry to its default values.
Show the registered extensions.
Print the package names registered to be logged.
unregister_extension
(extension_name)Unregisters an extension.
Attributes
FORMAT_VERSION
Return the filename that stores the registry.
- add_logger(package_name)[source]¶
Add a package name to the logging registry.
- Parameters:
package_name (str)
- remove_logger(package_name)[source]¶
Remove a package name from the logging registry.
- Parameters:
package_name (str)
- get_extension_class(extension_name, class_type)[source]¶
Get the class associated with the extension.
- Parameters:
extension_name (str)
class_type (ExtensionClassType)
- Raises:
InvalidParameter – Raised if the extension is not registered.
- register_extension(extension)[source]¶
Registers an extension in the registry.
- Parameters:
extension (dict)
- Raises:
InvalidParameter – Raised if the extension is invalid.
- property registry_filename¶
Return the filename that stores the registry.