|Title|Remove WikiEngine from session
|Date|14-Jun-2005 19:18:12 EEST
|JSPWiki version|2.2
|[Idea Category]|JSPWikiVersionThreeIdea
|[Idea Status]|NewIdea

The WikiEngine object is put in the session using pageContext.setAttribute().  However, since the engine object is a singleton for each context anyway, it's probably faster and a lot cleaner to simply call WikiEngine.getInstance() anyway.  This removes one dependency from the session object and cleans the JSP pages considerably.

The only case where this might not be faster is if you are running a very large number of Wikis...  Hmm.