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

Add getInstance() shortcut methods to Component Script Service

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.0.1
    • Fix Version/s: 6.1-milestone-2
    • Component/s: Component
    • Labels:
      None
    • Tests:
      Unit
    • Difficulty:
      Unknown
    • Similar issues:

      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

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

              Dates

              • Created:
                Updated:
                Resolved: