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

Scheduler: support skip predicate class with public no-args constructor #37829

Merged
merged 1 commit into from
Dec 22, 2023

Conversation

mkouba
Copy link
Contributor

@mkouba mkouba commented Dec 19, 2023

  • it does not need to represent a CDI bean anymore
  • add JobDefinition#skipPredicate() variant that accepts a class

This comment has been minimized.

- it does not need to represent a CDI bean anymore
- add JobDefinition#skipPredicate() variant that accepts a class
@mkouba mkouba force-pushed the scheduler-skip-predicate-class branch from 155f8ec to c30150d Compare December 19, 2023 09:58
@mkouba mkouba requested a review from machi1990 December 19, 2023 10:04
Copy link

github-actions bot commented Dec 19, 2023

🙈 The PR is closed and the preview is expired.

This comment has been minimized.

Copy link

quarkus-bot bot commented Dec 19, 2023

✔️ The latest workflow run for the pull request has completed successfully.

It should be safe to merge provided you have a look at the other checks in the summary.

@mkouba mkouba added this to the 3.7 - main milestone Dec 19, 2023
try {
return type.getConstructor().newInstance();
} catch (Exception e) {
throw new IllegalStateException("Unable to instantiate the class: " + type);
Copy link
Member

Choose a reason for hiding this comment

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

I will merge this but I wonder if we will regret to not have included the expection as a cause :).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We'll see.. 🤷

@gsmet gsmet merged commit ed73d97 into quarkusio:main Dec 22, 2023
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

2 participants