synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From indika kumara <>
Subject Re: Registering Synapse Observers at Startup
Date Mon, 27 Jul 2009 09:15:36 GMT
Hi Hiranya

If a user needs to add an Observer implementation, how he can specify
that? - There must be a configurable option. If you expect to allow a
configurable option as file, then using
SynapsePropertiesLoader at any location you want. Then, you can load
properties and creates Observers and add. This will be simple and will
not need any API changes.


On Mon, Jul 27, 2009 at 2:11 PM, Hiranya
Jayathilaka<> wrote:
> Hi Folks,
> I have added the SynapseObserver interface and the AbstractSynapseObserver
> class to the trunk as well as the 1.3 branch. I was thinking that it would
> be great if we can provide a mechanism to register an observer with the
> SynapseConfiguration before it gets populated by various entries by the
> configuration builder. In other words a mechanism to register an observer
> right after a SynapseConfiguration object is constructed using the 'new'
> keyword. That way, one can write an observer which monitors the
> configuration right from the configuration build time. I had a look at the
> existing code and it seems it is not easy to provide such a mechanism with
> the current design. So I would like to get some ideas from you all regarding
> this.
> I think we'll need to introduce a factory class which constructs
> SynapseConfiguration objects with the necessary observers registered.
> Configuration builders can use the factory to get a fresh
> SynapseConfiguration and start populating it. WDYT? Your ideas are highly
> appreciated.
> Thanks
> --
> Hiranya Jayathilaka
> Software Engineer;
> WSO2 Inc.;
> E-mail:;  Mobile: +94 77 633 3491
> Blog:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message