marquez icon indicating copy to clipboard operation
marquez copied to clipboard

Define `OpenLineageResource(OpenLineageService)` constructor

Open wslulciuc opened this issue 4 years ago • 1 comments

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).

wslulciuc avatar Feb 08 '22 22:02 wslulciuc

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.

fm100 avatar Feb 08 '22 23:02 fm100