org.apache.cocoon.servletscope
Class ServletScope
java.lang.Object
org.apache.cocoon.servletscope.ServletScope
- All Implemented Interfaces:
- org.springframework.beans.factory.config.Scope
public class ServletScope
- extends Object
- implements org.springframework.beans.factory.config.Scope
Stack based scope implementation. It is based on the CallStack and
an object is in scope when it is in the top frame of the stack.
- Since:
- 2.2
- Version:
- $Id: ServletScope.html 1422810 2012-12-17 09:13:50Z ilgrosso $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServletScope
public ServletScope()
setServletContext
public void setServletContext(javax.servlet.ServletContext servletContext)
get
public Object get(String name,
org.springframework.beans.factory.ObjectFactory objectFactory)
- Specified by:
get
in interface org.springframework.beans.factory.config.Scope
remove
public Object remove(String name)
- Specified by:
remove
in interface org.springframework.beans.factory.config.Scope
getConversationId
public String getConversationId()
- Specified by:
getConversationId
in interface org.springframework.beans.factory.config.Scope
registerDestructionCallback
public void registerDestructionCallback(String name,
Runnable callback)
- Specified by:
registerDestructionCallback
in interface org.springframework.beans.factory.config.Scope
executeDestructionCallbacks
public static void executeDestructionCallbacks(javax.servlet.ServletContext servletContext)
- Executes destruction callbacks of beans from servlet scope. This method should be called once the Servlet that the scope
is tied to is being destroyed.
- Parameters:
servletContext
-
Copyright © 1999-2012 The Apache Software Foundation. All Rights Reserved.