adobe / adobe/aem-core-wcm-components

[Architecture] Refactor models to remove @Self references when no longer needed

Open
#407 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
795
Forks
775
Avg merge
3d 22h
Merged PRs (30d)
8

Description

To ensure that this library's models are safe to be `cache=true`, the model implementations should be modified to remove all references to `@Self` at the end of the constructors/`@PostConstruct` methods.

See [the Sling Models docs](https://sling.apache.org/documentation/bundles/models.html#a-note-about-cache-true-and-using-the-self-injector) for an explanation.

Contributor guide

Open the contributing guide

Research direction

Start by reading the linked Sling Models documentation, especially the note about cache=true and the Self injector. Review the library's model implementations and their constructors or @PostConstruct methods, then verify that no unnecessary @Self references remain at the end of those methods.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.