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.;  http://wso2.org
E-mail: [email protected];  Mobile: +94 77 633 3491
Blog: http://techfeast-hiranya.blogspot.com

Reply via email to