-
Notifications
You must be signed in to change notification settings - Fork 23
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
Support @BatchProperty of type Enum #243
Comments
I think this has to be a Jberet job: https://github.com/jberet/jsr352/blob/main/jberet-core/src/main/java/org/jberet/creation/BatchBeanProducer.java is missing Enum injection |
@luca-bassoricci do you mean it could be as simple as adding a method:
|
Yes, this is not an issue with this extension directly, but a missing thing in JBeret. I'm not sure if a simple |
@radcortez |
Correct, but shouldn't this be fixed directly in JBeret? |
Absolutely; I thought adding enum support as a contribute to jberet, but my competencies in CDI are so scarce but - for now - I drop the idea. |
Given a job property defined as an enum named BatchMode
I get an injection error
Even if it's not described in the Jakarta Batch 2.1 Spec, there is a ValueConverter in JBeret which should be able to do the String to Enum conversion:
https://github.com/jberet/jsr352/blob/main/jberet-core/src/main/java/org/jberet/creation/ValueConverter.java
The text was updated successfully, but these errors were encountered: