Skip to content
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

concurrency resources via @Inject and with qualifiers #348

Conversation

njr-11
Copy link
Contributor

@njr-11 njr-11 commented Sep 27, 2023

fixes #229

This pull adds to the specification the ability to use @Inject to obtain the default instances of ManagedExecutorService, ManagedScheduledExecutorService, ContextService, and ManagedThreadFactory.

It also adds the ability to optionally include qualifiers on the resource definition annotations (ManagedExecutorDefinition, ManagedScheduledExecutorDefinition, ContextServiceDefinition, and ManagedThreadFactoryDefinition, in which case resources produced by them are injectable with the qualifiers.

…iers

Signed-off-by: Nathan Rauh <nathan.rauh@us.ibm.com>
@njr-11 njr-11 added enhancement New feature or request EE11 Suggested changes for Jakarta EE 11 labels Sep 27, 2023
@njr-11 njr-11 added this to the 3.1 milestone Sep 27, 2023
@KyleAure KyleAure self-requested a review October 3, 2023 20:26

Copyright (c) 2013, 2023 Oracle and/or its affiliates. All rights reserved.
Copyright (c) 2013, 2024 Oracle and/or its affiliates. All rights reserved.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we wait to update the copyright until we have changes to the spec that happen in 2024?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, thank you for spotting that. It's a mistake, and I added e743973 to correct it.

@njr-11 njr-11 merged commit 4e76b65 into jakartaee:main Oct 10, 2023
4 checks passed
@@ -39,9 +42,19 @@
* unchanged = TRANSACTION,
* cleared = ALL_REMAINING)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you missed the qualifiers = MyQualifier.class

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you missed the qualifiers = MyQualifier.class

Thanks! I have fixed it in commit b377e7a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
EE11 Suggested changes for Jakarta EE 11 enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ManagedExecutorService and ContextService default resources as injectable CDI beans
3 participants