Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-12182

Add support for @Inject in Groovy scripts

    XMLWordPrintable

Details

    • New Feature
    • Resolution: Unresolved
    • Minor
    • None
    • 7.0
    • Rendering
    • None
    • Unknown

    Description

      It would be nice to be able to things like:

      @Inject MailSenderConfiguration configuration;
      @Inject @Named("text/html") MimeBodyPartFactory htmlPartFactory;
      @Inject MailSender mailSender;
      @Inject @Named("database") MailListener databaseMailListener;
      ...
      

      This would avoid having to use utils.getComponent().

      Attachments

        Activity

          People

            Unassigned Unassigned
            vmassol Vincent Massol
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: