[ 
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)

Reply via email to