P
P
Popou2022-03-20 08:35:44
Java
Popou, 2022-03-20 08:35:44

Is it smart to use DependencyInjection in JavaFX?

It’s easy to implement this business, it’s just that some data must be the same between several Views, there is the same logic between them, plus I really want to use reflection and the Inject annotation

Of course, you can always use static classes, but something tells me that this is not right ....

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Orkhan, 2022-03-20
@Popou

Yes, it's reasonable.
I will even say this, there is a ready-made lib on Spring with all the features of spring for JavaFX.
https://habr.com/en/post/478402/
lib itself - https://github.com/rgielen/javafx-weaver

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question