spring icon indicating copy to clipboard operation
spring copied to clipboard

Fusion: Define endpoint in an interface

Open fluorumlabs opened this issue 5 years ago • 2 comments

As a developer I want to define Fusion endpoint in an interface so that I can supply different implementations using Spring facilities (for example, use dummy data provider in development mode)

fluorumlabs avatar Nov 26 '20 11:11 fluorumlabs

As a workaround, you can use the same endpoint implementation and inject different implementations of the data provider into it.

With some additional boilerplate, you can even let the endpoint implementation be an empty shell that just delegates everything directly to an injected implementation.

Legioth avatar Nov 27 '20 08:11 Legioth

Of course. But Fusion is all about reducing amount of boilerplate, so...

fluorumlabs avatar Nov 27 '20 08:11 fluorumlabs