incubator-clerezza-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henry Story <>
Subject Re: activate(ComponentContext context) or activate() ?
Date Tue, 27 Jul 2010 08:25:27 GMT

On 26 Jul 2010, at 18:43, Bertrand Delacretaz wrote:

> Hi Henry,
> On Mon, Jul 26, 2010 at 5:39 PM, Henry Story <> wrote:
>> ...It looks like the activate method requires the ComponentContext argument.
>> Without that the felxi OSGi component does not fetch it. Is that a
>> bug?...
> See [1], the activate method needs to have one argument, but 3
> argument types variants are accepted.

great. It looks like the one using java.util.Map would be best for the
keygen component, as it does not require that component to depend on another
OSGi framework. (I am trying to write it so that it is very light weight, and
useable by any java app that needs keygen)

But I just tried using the method with signature

    protected void activate(Map properties) 

in the KeygenService implementation at
but Clerezza no longer calls it. It does get called when I have the ComponentContext argument...

Thanks for the help,


>> I have seen a lot of documentation on the web that seems to suggest that
>> activate() should do...
> Looks like those suggestions are wrong.
>> Is there a way one can set an arbitrary method to be the activate method?..
> I don't think so.
> -Bertrand
> [1]

View raw message