Hi,
I require some advice regarding "Declarative Services". Unfortunately, I cannot
find anything in the specficiation. I have a component that registers a service
in the service registry.
What is the order during component activation and deactivation regarding
service (un-)registration via SCR
Jens Offenbach wrote
> Hi,
> I require some advice regarding "Declarative Services". Unfortunately, I
> cannot find anything in the specficiation. I have a component that registers
> a service in the service registry.
>
> What is the order during component activation and deactivation regarding
Hi Carsten,
thanks a lot for your quick response... I thought that there was a small notice
in the spec, but I cannot find it anymore: Can I rely on the fact, that a
component is fully activated before any service calls are made to it?
Regards,
Jens
Gesendet: Mittwoch, 01. Februar 2017 um 09:24
Hi Jens
Yes, you can.
SCR guarantees that the component’s activate method has successfully terminated
before returning the service instance. If the activate method fails (throws an
exception), the component object is not handed out.
Regards
Felix
> Am 01.02.2017 um 09:47 schrieb Jens Offenbac
That helps me a lot!
Thanks for clarification.
Regards,
Jens
Gesendet: Mittwoch, 01. Februar 2017 um 09:58 Uhr
Von: "Felix Meschberger"
An: "users@felix.apache.org"
Betreff: Re: Order of service (un-)registration in SCR
Hi Jens
Yes, you can.
SCR guarantees that the component’s activate met
5 matches
Mail list logo