Inject In Sling Model

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

作者 adobe940b8795c0dfApache-2.0197 個星標收錄於 2026年10月9日更新於 2026年10月8日儲存庫今天更新

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.

僅公開檔案列表。將技能安裝到工作區後即可檢視檔案內容。

路徑大小類型
recipe.md11.7 KBtext/markdown
SKILL.md3.3 KBtext/markdown

來源與署名

來源:adobe/skills位於plugins/aem/cloud-service/skills/code-assessment/inject-in-sling-model提交940b879

授權條款: Apache-2.0

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架