felix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Munteanu <romb...@apache.org>
Subject Re: DRY for DS?
Date Tue, 17 Nov 2015 19:43:30 GMT
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.

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: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Mime
View raw message