On Tue, Nov 17, 2015 at 2:43 PM, Robert Munteanu <[email protected]> wrote:
> Hi Benson,
>
> On Tue, Nov 17, 2015 at 8:00 PM, Benson Margulies <[email protected]> 
> 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?


>
> See 112.5.8 - Activate Method and 112.5.15 - Deactivate Method in the
> OSGi R6 Compendium specs for details.
>
> Robert
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to