Uploaded image for project: 'Causeway'
  1. Causeway
  2. CAUSEWAY-1009

Call a @PostConstruct callback for view models

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • core-1.7.0
    • 1.10.0
    • Core
    • None

    Description

      For view models that directly implement ViewModel interface, their viewModelInit(...) method is called and so they have a hook to do any additional initialization, eg looking up objects etc

      But for view models that are annotated using @ViewModel, these have no such hook.

      Suggest that we honour @PostConstruct annotation for all view models, as a consistent hook.

      Attachments

        Activity

          People

            Unassigned Unassigned
            danhaywood Daniel Keir Haywood
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: