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

Commands should be able to use @Inject

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • None
    • None
    • core
    • None

    Description

      Commands are currently instantiated with command.getClass().newInstance(); in info.magnolia.commands.CommandsManager#getCommand, thus can't benefit from DI. They would greatly benefit from it though.
      Note: perhaps we need to clarify a command instance lifecycle.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                gjoseph Magnolia International
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD