On Wednesday, January 19, 2011, Srinath Perera <[email protected]> wrote:
> Usually observer model works without know about the other observers in
> the system. Therefore, we should only do this if absolutely necessary.
> --Srinath
>
> On Wed, Jan 19, 2011 at 1:46 PM, Hiranya Jayathilaka <[email protected]> wrote:
>>
>>
>> On Tue, Jan 18, 2011 at 5:26 PM, Shammi Jayasinghe <[email protected]> wrote:
>>>
>>> Hi ,
>>>
>>> In the process of providing multi tenant support for CEP , there are two
>>> components (broker-manager and cep) that are needed to implement the
>>> interface Axis2ConfigurationContextObserver.
>>> In that case,  i need to control the order of  invoking of these
>>> implementations since CEP is depend on broker-manager and , broker manager
>>> has to load some resources from registry which are needed for CEP.
>>>
>>>
>>> What is the possible way to do this ?
>>
>> I think observers get notified in the order they were registered. So if you
>> can control the registration order, then you have a guarantee regarding the
>> order of notification. If not we will have to add a method to the observer
>> registration API which will enable the programmer to enforce this kind of
>> restrictions. For an example:
>> addAfter(Observer o1, Observer o2)
>> addBefore(Observer o1, Observer o2)
>> Thanks,
>> Hiranya
>>
>>>
>>> Thanks
>>> --
>>> Best Regards,
>>>
>>> Shammi Jayasinghe
>>> Senior Software Engineer; WSO2, Inc.; http://wso2.com,
>>> mobile: +94 71 4493085
>>>
>>>
>>>
>>> _______________________________________________
>>> Carbon-dev mailing list
>>> [email protected]
>>> https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>
>>
>>
>>
>> --
>> Hiranya Jayathilaka
>> Senior Software Engineer;
>> WSO2 Inc.;  http://wso2.org
>> E-mail: [email protected];  Mobile: +94 77 633 3491
>> Blog: http://techfeast-hiranya.blogspot.com
>>
>> _______________________________________________
>> Carbon-dev mailing list
>> [email protected]
>> https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
>
>
> --
> ============================
> Srinath Perera, Ph.D.
>   Senior Software Architect, WSO2 Inc.
>   Visiting Lecturer, University of Moratuwa
>   Member, Apache Software Foundation
>   Research Scientist, Lanka Software Foundation
>   Blog: http://srinathsview.blogspot.com/
> _______________________________________________
> Carbon-dev mailing list
> [email protected]
> https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>

-- 
Sameera Jayasoma
Technical Lead and Product Manager, WSO2 Carbon

WSO2, Inc. (http://wso2.com)
email: [email protected]
blog: http://tech.jayasoma.org

Lean . Enterprise . Middleware
_______________________________________________
Carbon-dev mailing list
[email protected]
https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to