On 4/27/10 11:17, Nicolas Delsaux wrote:
On Tue, Apr 27, 2010 at 4:55 PM, Richard S. Hall<[email protected]>  wrote:
I assume it is not this easy, but are you looking for:

    @Requires(optional=true)
    private UIStarter[] starters;

?

Well, the question is .... how does it behaves when one of the
required UIStarter services is not validated ? Is this service in the
array ?

As Clement says, there really isn't such thing as a service that isn't valid. If its component isn't valid, then the service isn't published. Period. Therefore, your component will only see valid services, by definition (except normal OSGi race conditions).

-> richard

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to