The Apache Sling Model enables injector specific annotations which aggregate the standard annotations for each of the available injector, which are: Script Bindings, Value Map, Resource Path, Child Resources, Request Attributes, OSGI Services, Self, and the Sling Object. Sure we can invoke injectors by the @inject, followed by the @source annotation (with an injector name) as so, @Inject @Source(“script-bindings”), but invoking such injectors introduces many more lines of code which is tedious and repetitive. Using the @inject annotation freely may cause injector collisions. Available Injectors @ScriptVariable @ValueMapValue @ResourcePath @ChildResource @RequestAttribute @OSGiService @Self @SlingObject
Please use this thread to ask the related questions.
Topics help categorize Community content and increase your ability to discover relevant content.