felix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clement Escoffier <clement.escoff...@gmail.com>
Subject Re: Upgrading from iPOJO 1.8.6 to 1.11.0
Date Wed, 16 Oct 2013 16:13:43 GMT
Wow… forgot to send the announce mail. 
Fixing that right about now.

Clement

On 16 oct. 2013, at 15:15, Benjamin Debeerst <Debeerst@younicos.com> wrote:

> I'm reading from this thread that version 1.11.0 has been released for runtime and manipulator.
Are there release notes somewhere? I could not find any.
> 
> -----Original Message-----
> From: bengt.rodehav@gmail.com [mailto:bengt.rodehav@gmail.com] On Behalf Of Bengt Rodehav
> Sent: Mittwoch, 16. Oktober 2013 08:54
> To: users@felix.apache.org
> Subject: Re: Upgrading from iPOJO 1.8.6 to 1.11.0
> 
> OK thanks - this is exactly what I want to accomplish. I'll just remove the "nullable=false"
then.
> 
> /Bengt
> 
> 
> 2013/10/16 Clement Escoffier <clement.escoffier@gmail.com>
> 
>> Hi,
>> 
>> On 16 oct. 2013, at 08:27, Bengt Rodehav <bengt@rodehav.com> wrote:
>> 
>>> I have code like this:
>>> 
>>> @Requires(optional = false, nullable = false)  private 
>>> INotificationProvider[] mProviders;
>>> 
>>> My intention was to require at least one provider.  If I drop the
>> "nullable
>>> = false" then the error logging goes away but will it still require 
>>> at least one provider?
>>> 
>>> If I set "optional = true", does that mean that an empty array will 
>>> be
>> OK?
>>> Will the array be null or empty?
>> 
>> For aggregate optional dependencies, iPOJO injects empty arrays. If 
>> you remove the optionality, iPOJO injects an array with at least one provider.
>> 
>> Regards,
>> 
>> Clement
>> 
>> 
>>> 
>>> /Bengt
>>> 
>>> 
>>> 
>>> 2013/10/15 Bengt Rodehav <bengt@rodehav.com>
>>> 
>>>> Ok - thanks. /Bengt
>>>> Den 15 okt 2013 13:24 skrev "Clement Escoffier" <
>>>> clement.escoffier@gmail.com>:
>>>> 
>>>> Hi,
>>>>> 
>>>>> On 15 oct. 2013, at 13:05, Bengt Rodehav <bengt@rodehav.com> wrote:
>>>>> 
>>>>>> I am trying to update iPOJO frm 1.8.6 to the newly released 1.11.0.
>>>>>> However, I get the following error message in my log:
>>>>>> 
>>>>>> 2013-10-15 13:01:12,874 | ERROR |  pool-1-thread-1 |
>>>>> notification-service
>>>>>>        | ?                                   ? | [ERROR]
>>>>>> seco.notification.service : The `nullable`, 
>>>>>> `default-implementation`
>> and
>>>>>> `exception` attributes are not usable in 
>>>>>> {id=se.digia.seco.notification.spi.INotificationProvider,
>>>>> field=mProviders,
>>>>>> specification=se.digia.seco.notification.spi.INotificationProvide
>>>>>> r} -
>>>>>> reason: the dependency is aggregate
>>>>>> 2013-10-15 13:01:12,946 | ERROR |  pool-1-thread-1 | web-console
>>>>>>         | ?                                   ? | [ERROR]
>>>>>> seco.webconsole : The `nullable`, `default-implementation` and
>>>>> `exception`
>>>>>> attributes are not usable in {id=se.digia.seco.web.api.IPlugin,
>>>>>> field=mPlugins, specification=se.digia.seco.web.api.IPlugin} - reason:
>>>>> the
>>>>>> dependency is aggregate
>>>>>> 
>>>>>> Are there any incompatible changes between these iPOJO versions 
>>>>>> that I
>>>>> need
>>>>>> to address?
>>>>> 
>>>>> It's not really an incompatibility, we just catch more errors. 
>>>>> Your dependency has a `nullable` `default-implementation` or 
>>>>> `exception` specified in its configuration while being aggregate. 
>>>>> In the previous version, these parameters were silently ignored, 
>>>>> in the 1.11.0 we
>> raise an
>>>>> exception. Just remove the wrong parameters.
>>>>> 
>>>>> Regards,
>>>>> 
>>>>> Clement
>>>>> 
>>>>>> 
>>>>>> /Bengt
>>>>> 
>>>>> 
>>>>> ------------------------------------------------------------------
>>>>> --- To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>>>>> For additional commands, e-mail: users-help@felix.apache.org
>>>>> 
>>>>> 
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>> For additional commands, e-mail: users-help@felix.apache.org
>> 
>> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Mime
View raw message