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

Sling Models: Add via support to Self annotation

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • None
    • None
    • None

    Description

      Allows the object that is to be applied or adapted to come from a property of the given adaptable.

      example:

      @Model(adaptables = SlingHttpServletRequest.class)
      public class Foo {
      
      	@Self(via = "resourceResolver")
      	TagManager tagManager;
      }
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            jebailey Jason E Bailey
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: