Uploaded image for project: 'Isis'
  1. Isis
  2. ISIS-1009

Call a @PostConstruct callback for view models

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: core-1.7.0
    • Fix Version/s: 1.10.0
    • Component/s: Core
    • Labels:
      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

            • Assignee:
              Unassigned
              Reporter:
              danhaywood Dan Haywood
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: