On Wednesday 21 February 2018 10:47:05 'Christoph Läubrich' via OPS4J wrote: > This depends on the DS-Provider you use e.g. the apache felix one has an > API for this and if I rember right it is also standarized in OSGi-R7 > > See > http://felix.apache.org/documentation/subprojects/apache-felix-service-compo > nent-runtime.html#api-use > > This is nothing special in pax exam so you can simply use > > @Inject > private ScrService service;
Waiting for components to be present (activated) in tests is a useful feature indeed. One possible way: we could register proxy services for those components. Any other ideas? Regards, O. > Am 20.02.2018 um 13:46 schrieb nino martinez wael: > > Ok.. When using Pax exam I can write @inject MyOwnService service.. Then > > pax exam will inject the service into the test once karaf are bootet > > etc... Im wondering if there's a way to do that with components.. > > > > Den tirsdag den 20. februar 2018 kl. 12.36.59 UTC+1 skrev Jean-Baptiste > > > > Onofré: > > Not sure I understand what you mean. > > > > If you use Karaf pax exam container it's as when you are a vanilla > > Karaf. > > > > Regards > > JB > > Le 20 févr. 2018, à 12:00, nino martinez wael > > > > <[email protected] <javascript:>> a écrit: > > Hi > > > > Are there anyway to get declarative services components? Both > > the component itself but also the reference where you can start > > and stop it? -- -- ------------------ OPS4J - http://www.ops4j.org - [email protected] --- You received this message because you are subscribed to the Google Groups "OPS4J" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
