felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Clement Escoffier (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (FELIX-4240) Support the 'exception' attribute in service dependencies
Date Tue, 08 Oct 2013 17:20:44 GMT

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

Mime
View raw message