-
Notifications
You must be signed in to change notification settings - Fork 38
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
concurrency resources via @Inject and with qualifiers #348
Conversation
…iers Signed-off-by: Nathan Rauh <[email protected]>
|
||
Copyright (c) 2013, 2023 Oracle and/or its affiliates. All rights reserved. | ||
Copyright (c) 2013, 2024 Oracle and/or its affiliates. All rights reserved. |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
@@ -39,9 +42,19 @@ | |||
* unchanged = TRANSACTION, | |||
* cleared = ALL_REMAINING) |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
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.