felix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ferry Huberts <maili...@hupie.com>
Subject Re: DRY for DS?
Date Tue, 17 Nov 2015 20:19:59 GMT
For bnd you really do need the @Activate and @Deactivate annotations, 
otherwise the component XML doesn't specify them

On 17/11/15 20:57, Robert Munteanu wrote:
> On Tue, Nov 17, 2015 at 9:47 PM, Benson Margulies <benson@basistech.com> wrote:
>> On Tue, Nov 17, 2015 at 2:43 PM, Robert Munteanu <rombert@apache.org> wrote:
>>> Hi Benson,
>>>
>>> On Tue, Nov 17, 2015 at 8:00 PM, Benson Margulies <benson@basistech.com>
wrote:
>>>> I'm feeling a bit sad; I have a family of 12 very similar services,
>>>> but I can't put the @Reference, @Activate, and @Deactivate into the
>>>> base class, I have to copy and paste it into each component class.
>>>>
>>>> Have I missed an alternative?
>>>
>>> The @Activate and @Deactivate annotations are optional if you stick to
>>> the standard 'activate' and 'deactivate' method names.
>>
>> I've also got some @References being repeated.
>>
>> As far as 'standard' goes, this is the standard that specs how bnd
>> turns .class files into XML? So my only concern would be that some
>> other tool might not do it?
>
> The default activate and deactivate method names are not tied to bnd.
> They are considered when these method names are not defined in the XML
> descriptor.
>
> Robert
>
>
>

-- 
Ferry Huberts

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


Mime
View raw message