Re: [Dev] Why we are refactoring the CarbonContext API Usage in the Carbon platform?

2013-10-03 Thread Afkham Azeez
getThreadLocalVariable or getThreadLocalContext? On Thu, Oct 3, 2013 at 9:21 PM, Senaka Fernando wrote: > Hi Sameera, > > I believe that eventually, we should end up getting rid of everything > #getCurrentContext, > and then renaming #getThreadLocalVariable to #getCurrentContext isn't it? > IM

Re: [Dev] Why we are refactoring the CarbonContext API Usage in the Carbon platform?

2013-10-03 Thread Sameera Jayasoma
On Thu, Oct 3, 2013 at 9:21 PM, Senaka Fernando wrote: > Hi Sameera, > > I believe that eventually, we should end up getting rid of everything > #getCurrentContext, > and then renaming #getThreadLocalVariable to #getCurrentContext isn't it? > IMHO, the thread local story was needed to differenti

Re: [Dev] Why we are refactoring the CarbonContext API Usage in the Carbon platform?

2013-10-03 Thread Senaka Fernando
Hi Sameera, I believe that eventually, we should end up getting rid of everything #getCurrentContext, and then renaming #getThreadLocalVariable to #getCurrentContext isn't it? IMHO, the thread local story was needed to differentiate between the thread-local model and the non-thread-local model in

Re: [Dev] Why we are refactoring the CarbonContext API Usage in the Carbon platform?

2013-10-03 Thread Sameera Jayasoma
Hi Sanjiva, This method first check whether an instance of the CarbonContext is stored in the MessageContext, if not checks in the ConfiguratoinContext. If both of these checks fails, this method returns the thread local variable. This has caused issues during this 4.2.0 release. Thats why we thou

Re: [Dev] Why we are refactoring the CarbonContext API Usage in the Carbon platform?

2013-10-02 Thread Sanjiva Weerawarana
Sameera isn't CarbonContext.getCurrentContext() supposed to return the context associated with the current thread??? On Tue, Oct 1, 2013 at 11:45 AM, Sameera Jayasoma wrote: > Hi Folks, > > Some of you may be wondering why we are doing this change now. The > simplest reason is, to ensure the co

[Dev] Why we are refactoring the CarbonContext API Usage in the Carbon platform?

2013-09-30 Thread Sameera Jayasoma
Hi Folks, Some of you may be wondering why we are doing this change now. The simplest reason is, to ensure the consistency of its usage. Over the past few years somehow we've ended up adding more methods to this API and also ended up putting two different set of APIs for setting and getting the C