Hi! > The FrameworkAdapter class currently uses a static variable to find its > singleton object. However static variables are tricky in unit testing, > and are a problem when a library is deployed via a shared classloader. > > The only thing which comes to mind is using a ThreadLocal, and having a > servlet request filter that sets up the threadlocal on request start and > resets it on request end. This is effectively how > FacesContext.getCurrentInstance works. > I see no problem in doing so, just add it to the OrchestraServletFilter.
Ciao, Mario