info.magnolia.context
Class ContextFactory

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

@Singleton
public class ContextFactory
extends 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()
          Deprecated. since 4.5, use IoC, i.e., declare a dependency on ContextFactory in your component.
 SystemContext getSystemContext()
          Deprecated. since 4.5, use IoC, i.e., declare a dependency on SystemContext in your component.
 
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

@Deprecated
public SystemContext getSystemContext()
Deprecated. since 4.5, use IoC, i.e., declare a dependency on SystemContext in your component.

Returns:
singleton instance of the SystemContext.

getInstance

@Deprecated
public static ContextFactory getInstance()
Deprecated. since 4.5, use IoC, i.e., declare a dependency on ContextFactory in your component.

Returns:
singleton instance of itself.


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