Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-6969

@javax.annotation.PostConstruct is a bit useless because it is called _before_ Node2Bean.

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Neutral
    • None
    • None
    • None
    • None

    Description

      If I want to do something in a magnolia managed bean then I might want to some initialization. E.g. we extended info.magnolia.module.site.ConfiguredSite

      Naively I put a @PostConstruct method on the extension.

      Tough the method is called, every field (as in this instance even the name of the site) is still null, which makes it less then useful.

      I would have expected that the method was called after the bean was completely constructed.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              mihxil Michiel Meeuwissen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Checklists

                  Task DoD