Skip to content

[GR-66791] Introduce SingletonTraits annotation. #11722

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

graalvmbot
Copy link
Collaborator

This PR adds the @SingletonTraits annotation, which we intend to be a replacement for the LayeredImageSingleton (and children) interfaces.

The benefits of switching to an annotation include:

  1. it can directly label the singleton class with all relevant information - we don't have to worry about inheriting traits
  2. it can be injected into 3rd party code

More details about the traits themselves can be found in the javadoc included as part of this PR

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jul 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants