mathieuancelin / weld-osgi

This project aims to provide an OSGi integration for Weld. This project is no longer updated, see https://github.com/weld/core for updates
https://github.com/weld/core
12 stars 10 forks source link

Service injection on a unqualified injection point might get a random service #76

Closed arcane86 closed 12 years ago

arcane86 commented 13 years ago

See ServiceConsumingTest

@Publish
public class C1 implements Itf {
}

@Publish
public class C2 implements Itf {
}

@Inject
@OSGiService
Itf injected; //get C1 or C2
mathieuancelin commented 13 years ago

That's the point of OSGi services

arcane86 commented 13 years ago

Yep but i think that adding the CDI default @Default qualifier might be nice on unqualified auto-published service.