Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-564

Allow multiple @Alias for a plugin

    Details

    • Type: Enhancement
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: 1.2.1.Final
    • Component/s: None
    • Labels:

      Description

      A plugin could have multiple alias. For example, the Help plugin could be invoked by "help" or "?".

      This issue has two possible solutions :

      1. Changing the @Alias value() method to return a String[] or
      2. As Dan Allen suggested, introduce an @Aliases annotation that accepts a collection of @Alias annotations. this reads nicer and leaves the door open for per-alias customizations if we should need them.

      The second approach looks nicer.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                gastaldi George Gastaldi
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: