Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

AEM Sling Models Injectors Service Ranking | AEM Community Blog Seeding




AEM Sling Models Injectors Service Ranking by Sourcedcode


When working on an AEM project, Sling Models provides several custom Sling Models injectors to aid injection of Sling objects, Sling object values, OSGI services, etc…

While using the injectors within in Sling Models, how do injectors invoke in order? Injectors are invoked in order, of their service ranking, from lowest to highest. If you are writing a custom injector, it is good practice to include service ranking.

Examples of the common injectors and their service ranking from the Apache Sling Models availiable injectors, injector-specific annotations, list (since version 1.1.0):

@ScriptVariable, 1000
@ValueMapValue, 2000
@ChildResource, 3000
@RequestAttribute, 4000
@ResourcePath, 2500
@OSGiService, 5000
@Self, 2147483647 (Integer.MAX_VALUE)
@SlingObject, 2147483647 (Integer.MAX_VALUE)

Read Full Blog

AEM Sling Models Injectors Service Ranking


Please use this thread to ask the related questions.


Topics help categorize Community content and increase your ability to discover relevant content.

0 Replies

The ultimate experience is back.

Join us in Vegas to build skills, learn from the world's top brands, and be inspired.

Register Now