You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The key difference is that instead of returning a new instance of a class, only the class itself is returned. We use managed sub resources extensively so we don't have to inject at the parent resource and then pass the injected object to the sub resource constructor, and so we can let CDI manage the lifetime.
I know where to fix this and will submit a draft PR, but I will need some help with the correct implementation and the best place to introduce tests.
The text was updated successfully, but these errors were encountered:
Smallrye Open API can handle normal JAX-RS sub resources:
However, there is no support for managed sub resource locators.
The key difference is that instead of returning a new instance of a class, only the class itself is returned. We use managed sub resources extensively so we don't have to inject at the parent resource and then pass the injected object to the sub resource constructor, and so we can let CDI manage the lifetime.
I know where to fix this and will submit a draft PR, but I will need some help with the correct implementation and the best place to introduce tests.
The text was updated successfully, but these errors were encountered: