jakartaee / batch

The Jakarta Batch project produces the Batch Specification and API.
https://projects.eclipse.org/projects/ee4j.batch
Apache License 2.0
13 stars 18 forks source link

Injecting one artifact into another #171

Closed follis closed 2 years ago

follis commented 4 years ago

Spec should discuss what happens if you try to inject an artifact (e.g. a reader) into another one (e.g. a listener to let it call the reader to read something). This is just CDI bean injection and allowed, but…do you get the same instance as one you are already using? Or what? Spec should say something...

scottkurz commented 2 years ago

Having spent more time on CDI this release, I think it's best to avoid having the batch spec add wording around behavior that's purely defined by CDI. I'm tempted to want to clarify this but maybe this is really product doc, guides, and blog posts, etc.

Should it be in the TCK? I'm leaning towards no, for basically the same reasons. I could be wrong.. But I'm going to close for now, especially since it doesn't seem like anyone's going to do this for 2.1.