Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-1829

Allow @Marker annotation on module classes, to automatically mark all services of that module with the annotation

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.5
    • Fix Version/s: 5.0.7
    • Component/s: None
    • Labels:
      None

      Description

      This is very common for frameworks, if not for user (application) modules. You want to define a marker annotation, often as an inner class of the module, and mark all the services in that module with the annotation. That makes referencing a service in the module (for instance, so as to contribute to Alias) much simpler, and obviates the need to know the service id.

        Activity

        Hide
        hlship Howard M. Lewis Ship added a comment -

        The intent is that the provided default is used instead of null for all services that don't have a specific marker annotation.

        Show
        hlship Howard M. Lewis Ship added a comment - The intent is that the provided default is used instead of null for all services that don't have a specific marker annotation.

          People

          • Assignee:
            hlship Howard M. Lewis Ship
            Reporter:
            hlship Howard M. Lewis Ship
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development