Get the event manager.
(self)
| 61 | self._configuration = configuration |
| 62 | |
| 63 | def get_event_manager(self) -> EventManager: |
| 64 | """Get the event manager.""" |
| 65 | if self._event_manager is None: |
| 66 | logger.debug('No event manager set, implicitly creating and using default LocalEventManager.') |
| 67 | if self._configuration is None: |
| 68 | logger.warning( |
| 69 | 'Implicit creation of event manager will implicitly set configuration as side effect. ' |
| 70 | 'It is advised to explicitly first set the configuration instead.' |
| 71 | ) |
| 72 | self._event_manager = LocalEventManager().from_config(config=self._configuration) |
| 73 | |
| 74 | return self._event_manager |
| 75 | |
| 76 | def set_event_manager(self, event_manager: EventManager) -> None: |
| 77 | """Set the event manager. |