info.magnolia.context
Class ContextFactory
java.lang.Object
info.magnolia.context.ContextFactory
@Singleton
public class ContextFactory
- extends Object
Default context provider.
- Version:
- $Id$
- Author:
- had
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 |
ContextFactory
public ContextFactory()
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–2014 Magnolia International Ltd.. All rights reserved.