org.apache.cocoon.servletscope
Class ServletScope
java.lang.Object
org.apache.cocoon.servletscope.ServletScope
- All Implemented Interfaces:
- Scope
- public class ServletScope
- extends Object
- implements 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: CallScope.java 562806 2007-08-05 02:26:41Z vgritsenko $
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(ServletContext servletContext)
get
public Object get(String name,
ObjectFactory objectFactory)
- Specified by:
get
in interface Scope
remove
public Object remove(String name)
- Specified by:
remove
in interface Scope
getConversationId
public String getConversationId()
- Specified by:
getConversationId
in interface Scope
registerDestructionCallback
public void registerDestructionCallback(String name,
Runnable callback)
- Specified by:
registerDestructionCallback
in interface Scope
executeDestructionCallbacks
public static void executeDestructionCallbacks(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-2008 The Apache Software Foundation. All Rights Reserved.