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
Inter bundle producer methods don't seem to be supported.
I tried several things, but it doesn't seem to work.
I guess since in PAX-CDI inter bundle bean injections has to use the OSGi service registry, the @OsgiServiceProvider annotation is also used for producer methods.
And since I want a different instance for each injection point, I guess I need the prototype scope.
I'm not sure if the @PrototypeScoped annotation should really be needed in this case or if the PrototypeServiceFactory should be used by default in an OSGi v6 environment, if there is an InjectionPoint argument.
Florian Brunner created PAXCDI-197
Inter bundle producer methods don't seem to be supported.
I tried several things, but it doesn't seem to work.
I guess since in PAX-CDI inter bundle bean injections has to use the OSGi service registry, the
@OsgiServiceProvider
annotation is also used for producer methods.And since I want a different instance for each injection point, I guess I need the prototype scope.
So I tried (among other things):
And on the consumer side I tried:
But it's not working.
I'm getting different exceptions depending on the execution environment.
Eg. with Pax Exam:
And in my project environment I'm getting even if I don't have a consumer:
Affects: 0.11.0
Votes: 0, Watches: 1
The text was updated successfully, but these errors were encountered: