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

Meta annotations for component availability

XMLWordPrintable

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

      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 {}
      

        Acceptance criteria

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

                Created:
                Updated:
                Resolved: