marquez
marquez copied to clipboard
Define `OpenLineageResource(OpenLineageService)` constructor
When constructing a new OpenLineageResource object, a ServiceFactory is required therefore not allowing users to inject, possibly their own, OpenLineageService implementation. Let's define the constructor OpenLineageResource(OpenLineageService) and deprecate the usage of OpenLineageResource(ServiceFactory).
Every resources inherits BaseResource with a constructor getting ServiceFactory, and we may want to do some overall refactoring to create resourses only with the actual dependencies to be injected.