Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fusion: Define endpoint in an interface #699

Open
fluorumlabs opened this issue Nov 26, 2020 · 2 comments
Open

Fusion: Define endpoint in an interface #699

fluorumlabs opened this issue Nov 26, 2020 · 2 comments

Comments

@fluorumlabs
Copy link

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)

@Legioth
Copy link
Member

Legioth commented Nov 27, 2020

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.

@fluorumlabs
Copy link
Author

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

@haijian-vaadin haijian-vaadin transferred this issue from vaadin/flow Dec 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants