Application config manager
ApplicationConfigManager
¶
Bases: object
The ConfigManager class, which is used to load and manage the configuration.
Source code in agentuniverse/base/config/application_configer/application_config_manager.py
Python
@singleton
class ApplicationConfigManager(object):
"""The ConfigManager class, which is used to load and manage the configuration."""
def __init__(self):
"""Initialize the ConfigManager."""
self.__app_configer: Optional[AppConfiger] = None
@property
def app_configer(self):
"""Return the AppConfiger object."""
if self.__app_configer is None:
raise ValueError("The AppConfiger object is not set.")
return self.__app_configer
@app_configer.setter
def app_configer(self, app_configer: AppConfiger):
"""Set the AppConfiger object."""
self.__app_configer = app_configer