factory
Factory Utility API
This module provides a thread-safe singleton factory to register, create, and list items.
Classes:
-
SingletonMeta–Thread-safe singleton metaclass
-
ItemFactory–Item factory
Classes
SingletonMeta
Thread-safe singleton.
ItemFactory
Item factory enables registering, creating, and listing items. It is a singleton class.
Functions
shared
classmethod
register
unregister
list
get
Functions
create_factory
Create a factory
Parameters:
Returns:
-
ItemFactory[T]–ItemFactory[T]: factory