sialcasa / mvvmFX

an Application Framework for implementing the MVVM Pattern with JavaFX
Apache License 2.0
494 stars 105 forks source link

Support multiple @Initialize annotations in one file #484

Closed manuel-mauky closed 7 years ago

manuel-mauky commented 7 years ago

With #475 (PR for #332) we introduced the possibility to use a new annotation @Initialize to mark a method in a viewModel so that it is invoced after injection of dependencies is done.

However, the first implementation in #475 only supports a single method with this annotation. Additionally, an existing public void initialize method was ignored when a method with the new annotation is present.

These limitations aren't useful or needed. We should support multiple initializer methods and the combination with the existing naming convention.