A FrameworkAdapter which uses local maps to simulate a servlet environment.
This is intended when Orchestra functionality is desired outside of any real request/response type system. One example is where a job scheduler (eg quartz) is used to execute background threads that want to execute the same beans that can also be used. In this case:
- Create a new Thread object
- Create a new LocalFrameworkAdapter instance
- Within the new thread, call FrameworkAdapter.setInstance.
When Orchestra methods are invoked from within the new thread, calls made to the framework adapter will be handled by the created LocalFrameworkAdapter instance, and will not interact with the user session, the original request or response. Because the session is new, no conversations will be inherited from the environment in which that new thread was created.
This class is not expected to be used very often.
Note that this adapter relies on Spring and thus you have to ensure {@link #setApplicationContext} is called.
Note also that because this is intended for use only without a real request and response, there is no corresponding Filter class.
This class does not override the inherited createConversationMessager method, so it is mandatory for anyone using this class to explicitly call method setConversationMessager before using an instance of this adapter.