Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-2938

AdapterMethods annotation and adapter proxy service

    XMLWordPrintableJSON

Details

    Description

      Following up on an idea that Olaf Otto presented at CQCon last week, I've been working on an @AdapterMethod annotation that makes it easier to create Sling adapters, as in

      @Component
      @Service
      public class MyAdapters implements AdapterMethodProvider {
      @AdapterMethod
      public Bar toBar(Foo f)

      { ... adapt Foo to Bar ... }

      }

      As this requires changes to the sling.api bundle, I'll commit to my whiteboard first, for review

      Attachments

        1. SLING-2938-api.patch
          6 kB
          Bertrand Delacretaz
        2. console.jpg
          88 kB
          Bertrand Delacretaz

        Issue Links

          Activity

            People

              bdelacretaz Bertrand Delacretaz
              bdelacretaz Bertrand Delacretaz
              Votes:
              2 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: