Uploaded image for project: 'Blossom'
  1. Blossom
  2. BLOSSOM-131

Meta annotations for component availability

    XMLWordPrintable

Details

    • New Feature
    • Resolution: Fixed
    • Neutral
    • 3.0
    • None
    • None
    • None

    Description

      For component availability it would be very handy if it supported meta annotations.

      The @AvailableComponentClasses annotation would then accept custom annotations annotated somehow to mark them as annotations to be used for this purpose.

      Any components found having such an annotation would be available when that annotation is given to @AvailableComponentClasses.

      @ComponentCategory
      @Retention(RetentionPolicy.RUNTIME)
      @Target(ElementType.TYPE)
      public @interface Banner {}
      
      @Area("banners")
      @AvailableComponentClasses({Banner.class})
      @Controller
      public class BannersArea {}
      
      @Banner
      @Template(id = "myModule:components/largePromoBanner", title="Large promo")
      @Controller("banner")
      public class LargePromoBannerComponent {}
      

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                tmattsson Tobias Mattsson
                tmattsson Tobias Mattsson
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: