Inject In Sling Model

adobe/skills/plugins/aem/cloud-service/skills/code-assessment/inject-in-sling-model

by adobe940b8795c0dfApache-2.0197 starsListed Oct 9, 2026Updated Oct 8, 2026Repository updated today

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.

Instructions onlySoftware Development
  1. 940b8795c0dfCurrentcommit 940b879Published Oct 8, 2026

Source and attribution

Source:adobe/skillsinplugins/aem/cloud-service/skills/code-assessment/inject-in-sling-modelat commit940b879

License: Apache-2.0

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal