You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Clement Escoffier (JIRA)" <ji...@apache.org> on 2013/10/08 19:20:44 UTC

[jira] [Closed] (FELIX-4240) Support the 'exception' attribute in service dependencies

     [ https://issues.apache.org/jira/browse/FELIX-4240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Clement Escoffier closed FELIX-4240.
------------------------------------


> Support the 'exception' attribute in service dependencies
> ---------------------------------------------------------
>
>                 Key: FELIX-4240
>                 URL: https://issues.apache.org/jira/browse/FELIX-4240
>             Project: Felix
>          Issue Type: Sub-task
>          Components: iPOJO
>         Environment: 
>            Reporter: Clement Escoffier
>            Assignee: Clement Escoffier
>             Fix For: ipojo-runtime-1.11.0
>
>
> An optional service dependency can declare an 'exception' attribute. This exception is raised when no service providers are available.
> The specified exception must a subclass of Runtime Exception.
> {code:java}
> @Requires(id="foo", optional = true, exception = NoServiceException.class)
> private FooService fs;
> {code}



--
This message was sent by Atlassian JIRA
(v6.1#6144)