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

Make Component Manager accessible as a Component Script Service

    XMLWordPrintable

Details

    • New Feature
    • Resolution: Fixed
    • Major
    • 4.1-milestone-2
    • 4.1-milestone-1
    • Component
    • None
    • Unit
    • Unknown

    Description

      Currently users have to do this:

      {{groovy}}
      import com.xpn.xwiki.web.Utils
      def converter =  Utils.getComponent(Converter.class);
      {{/groovy}}
      

      When this is implemented they'll be able to do:

      {{groovy}}
      def converter =  services.component.componentManager.getInstance(Converter.class)
      {{/groovy}}
      

      This has 3 advantages:

      • Uses the new way, i.e. Script Services accessible through the "services" variable
      • No need for import
      • Don't use old API's in the com.xpn package

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: