a↗agentbay.Get AgentBay
My account ▾
Menu
Back to results

inject-in-sling-model

AEM Cloud Service expert skill — migrate javax.inject.@Inject fields in Sling Model (@Model) classes to injector-specific annotations (@ValueMapValue / @OSGiService / @SlingObject). Self-discoverable (scan for @Model classes with field-level @Inject); the replacement is chosen deterministically from each field's declared type. Use for "fix @Inject…

Full publisher description

AEM Cloud Service expert skill — migrate javax.inject.@Inject fields in Sling Model (@Model) classes to injector-specific annotations (@ValueMapValue / @OSGiService / @SlingObject). Self-discoverable (scan for @Model classes with field-level @Inject); the replacement is chosen deterministically from each field's declared type. Use for "fix @Inject in HeroModel.java", "modernize my Sling Models", or when scanning an AEM project for @Inject misuse. Detailed decision table, companion-annotation handling, import management, and file-level skip policy are in recipe.md.

Source details

Read SKILL.md ↗ · Browse skill folder ↗

adobe/skills

plugins/aem/cloud-service/skills/code-assessment/inject-in-sling-model/SKILL.md

Pinned revision 3d5317db858fd02a74a8118bd9d6145c94cf404e

Source checked

Reviewed licence: Apache-2.0
Specific instruction/source terms; preserve the linked licence conditions, notices and attribution.

Reviewed publisher revision ↗ · 2026-11-22
This indexed source has a different revision. Verify its applicable terms before use.

This skill page is available in English. Publisher instructions stay in their original language.