ServiceLocator
Index
Methods
__init__
Parameters
optionalconfiguration: Configuration | None = None
optionalevent_manager: EventManager | None = None
optionalstorage_client: StorageClient | None = None
Returns None
get_configuration
Get the configuration.
Returns Configuration
get_event_manager
Get the event manager.
Returns EventManager
get_storage_client
Get the storage client.
Returns StorageClient
set_configuration
Set the configuration.
Parameters
configuration: Configuration
The configuration to set.
Returns None
set_event_manager
Set the event manager.
Parameters
event_manager: EventManager
The event manager to set.
Returns None
set_storage_client
Set the storage client.
Parameters
storage_client: StorageClient
The storage client to set.
Returns None
Properties
global_storage_instance_manager
storage_instance_manager
Get the storage instance manager. It is global manager shared by all instances of ServiceLocator.
Service locator for managing the services used by Crawlee.
All services are initialized to its default value lazily.