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

Add getInstance() shortcut methods to Component Script Service

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 6.1-milestone-2
    • 6.0.1
    • Component
    • None
    • Unit
    • Unknown

    Description

      I'm making 2 changes:

      • Right now the existing getInstance() methods have package visiblity. This is a mistake introduced in 6525c29 (for commit:
        "XWIKI-8318: Component Script Service should use the Context Component Manager").
      • They will return null if the component cannot be looked up
      • A getLastError() method is introduced to return any exception raised

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: