info.magnolia.context
Class ContextFactory

java.lang.Object
  extended by info.magnolia.context.ContextFactory

public class ContextFactory
extends java.lang.Object

Default context provider.

Version:
$Id: $
Author:
had

Constructor Summary
ContextFactory()
           
 
Method Summary
 WebContext createWebContext(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.ServletContext servletContext)
           
static ContextFactory getInstance()
           
 SystemContext getSystemContext()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextFactory

public ContextFactory()
Method Detail

createWebContext

public WebContext createWebContext(javax.servlet.http.HttpServletRequest request,
                                   javax.servlet.http.HttpServletResponse response,
                                   javax.servlet.ServletContext servletContext)
Returns:
new instance of the web context on every call.

getSystemContext

public SystemContext getSystemContext()
Returns:
singleton instance of the SystemContext.

getInstance

public static ContextFactory getInstance()
Returns:
singleton instance of itself.


Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.