ServiceConnector contexte

I created a new cloud connector by implementing ServiceConnectorExtensionPoint / ServiceConnector.
During module startup, the getExtensionPoints function is called before the setup function of the ModuleHook class.
As a result, the ServiceConnector instances are created without the GatewayContext that is required for the connector to work properly.

What would be the proper way to pass the GatewayContext (init at setup() ModuleHook) to the ServiceConnector instances?

Construct your object in your gateway hook (without a GatewayContext parameter), store a reference to it, and then inject the GatewayContext you get at setup() into your object in a separate setup method.

That is, do some setup-ish tasks in your hook's constructor, then pass your hook instance to your extension points instead of passing the context. When the extension point is invoked, use the stored hook instance to retrieve the context.